Attribute Nightmare in IE

Written by on January 12th, 2007 in Ajax News.

It’s Friday, so maybe you want to sit back for a few minutes and walk through some time in Tobie Langel’s life as he tries to get IE to play nice with attributes.

This tale walks through the pain of thinking that you have a working version, and then being disappointed again.

  • IE: element.foo === element.getAttribute(’foo’)
  • iFlags to the rescue ? element.getAttribute(’onclick’, 2);
  • attributes collection: element.attributes[’foo’];
  • Maybe wait for Prototypes upcoming: readAttribute()

Source: Ajaxian
Original Article: http://ajaxian.com/archives/attribute-nightmare-in-ie

Leave a Reply

You must be logged in to post a comment.



Site Navigation