@rohypnol said:
@tgape said:
No, I take that back. The real, honest to $deity WTF is that you and I appear to be the only ones here that understand there's a problem with the documentation here - although it sounds like you assumed the class returned in IE was the same class that was returned elsewhere, and that's kind of a WTF also.
The OP, who has been a JavaScript programmer for years, said that there was ZERO DOCUMENTATION, which isn't true: https://developer.mozilla.org/En/DOM/Document.getElementsByName explains everytthing very clearly.
Thank you for reinforcing my point. Documentation should exist both for the functions which return objects of a particular class as well as for the class itself. Pointing out that the former exist does not excuse the class developers from not writing/publishing the latter.
Now, that having been said, this time I tried actually looking for that class, and well, I found something. Yes, it's Java, rather than JavaScript, but it is certainly something.
@rohypnol said:
The only WTF that I find here is that normally you'd expect to get an object with the same prototype in all the browsers. Now, I don't know, who do you think should have explained to you that the result has different prototypes?
Never expect to hear a Microsoft apology from me; you'll not get it. Personally, I'm annoyed at all of the people who continue to prop them up by supporting their crap, now that there are almost viable alternatives. Admittedly, I don't have room to complain, as I've not really been helping much with the alternatives, either.