If Microsoft isn't going to accurately support the DOM in their web browser, they should consider renaming their functions to what they actually do. After beating my head against an IE problem (which has the worlds worst javascript debugger--motto: "What's a javascript debugger?"), I finally realized that when trying to do a document.getElementById()
, if you don't have an element with the ID, but you do have one with the name, it'll try to be helpful and give you the one with the name--even though that one has a different ID.
They should consider renaming the function to getElementByIdOrNameDependingOnWhatIsAvailable()
.