Today is a good day to code

IE Broken Support for getElementsByName

Posted: December 31st, 1969 | Author: | Filed under: Uncategorized | 2 Comments »

IE Broken Support for getElementsByName

Picture of IrvinSo, of course as I write code, I keep coming across the failings of IE7 (Internet Explorer 7). The latest one is that even though they say it supports it, it really doesn’t support getElementsByName, which is a really useful function.

Anyway, I found a decent solution, or at least a starting point at dream.in.code.

It takes the nodes of a specified tag name, in other words, getElementsByTagName, and builds a node array out of the tags of that type that have the name that you are looking for. It should work pretty well. Or, maybe Microsoft could just fix IE.


  • anonymous

    Your “dream in code” link seems to be the equivalent of hitting F5 on this page.

  • https://plus.google.com/104736914493472290579/posts irv

    Fixed.