Internet Explorer and standards : Case Sensitive document.getElementById
I know that IE have their own standards, but is it a feature or a bug ? Today I was working on a web-application using advanced forms with Javascript and AJAX, and I noticed something strange. The developer who created the forms is using always IE, and I followed the developpement until everything is done as expected. But when I moved to test it myself on my new Firefox 2.0a1 I got an error message : Error: document.getElementById("dV1_DAY") has no properties. After googling I found some posts talking about it and this demo page answered my question :
document.getElementById isn't case sensitive in Internet Explorer, which is supposed to be case-sensitive according to the W3 specification. Mike Bulman have written a small script to correct this, you can include it in your page so document.getElementById will be always case sensitive. Or simply use Firefox :-)


Subscribe to AJAX Magazine's feed