Site Navigation

Showing posts with label attributes. Show all posts
Showing posts with label attributes. Show all posts

Sunday, August 31, 2008

bug 215 - no hasAttributes() support in IE6, IE7

Issue: #215
Affects: IE6, IE7
Fixed In: IE8 Beta 2

The hasAttributes() method is available on the Node element in DOM 2 (W3C).

Test:




Known Workarounds: One. Test using a try/catch for the specific attribute you care about.



Related Issues: None.


Bug/Site Feedback |
Submit a bug

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