This site heavily relies on bug reports created by its readers. Anyone can report a bug and be published.
Main navigation:
Search reports by browser:
IE6 returns null when trying to alert a <label> element's "for"-attribute using getAttribute("for"). It otherwise returns the correct value when doing: attributes["for"].value. FF returns the correct value in both cases.
Workaround: Use attributes["for"].value for compatability.
Test page Workaround is included
Reported by: Marc Eley.
Explorer 5-6 Windows, Explorer 7 beta 2 | Reported on 19 September 2005.
Posted by Dirk Ginader on 7 February 2006
2attributes["for"].value is not supported by Safari. So you better use the "htmlFor" property.
Commenting guidelines:
Posted by Mark Wubben on 19 September 2005
1You can also use the `htmlFor` property.