Site Navigation

Wednesday, April 30, 2008

bug 230 - no Element.attributes array in IE8

Issue: #230
Affects: IE8 Beta 1, IE8 Beta 2

When inspecting an element (especially in IE) we often look to the attributes array to get information on what is set.

There are actually 4 ways to get access to an attribute using the attribute array.

1.) Iterate over each index in the array
2.) Iterate over each key in the array (associatively)
3.) Get by index
4.) Get by key

Unfortunately in IE8 Beta 1, all of the above are broken!

Example:

Test DIV
with id="testme"
with style="border:1px dashed red;padding:4px;"
with align="center"








Known Workarounds: None.



Related Issues: None.

Bug/Site Feedback |
Submit a bug