document.getElementById bug
Date: 2005-01-10

original: http://www.csb7.com/test/ie_getelementbyid_bug/index.php

This page tests a bug in Internet Explorer whereby the document.getElementById() function may return an element with a name attribute equal to the id that is specified. This can cause unexpected results.

Test case:

|  | <input name="bar" type="text" id="foo" value="foo" />
|  | <input name="foo" type="text" id="bar" value="bar" />
|  | This should show an alert box where foo=foo and bar=bar

Reported at http://www.quirksmode.org/bugreports/index.html 2005-08-29

Noted on http://channel9.msdn.com/wiki/default.aspx/Channel9.InternetExplorerProgrammingBugs