MSIE7/8 alerts a 'Failed' error when trying to get some attributes of VML objects
|Reported by:||lmeurs||Owned by:|
(Like mentioned at http://bugs.jquery.com/ticket/9105)
MSIE7/8 experiences difficulties with getting some attributes of VML objects, attributes like 'type', 'innerHTML', 'outerHTML' and 'title'.
A simple thing like
result in a mysterious 'Failed' error.
This bug effects Sizzle and jQuery, since both sometimes try to get the 'type' attribute of an element without checking the tagName first. Sizzle tests this attribute while selecting elements, jQuery tests this attribute when a 'submit' event is bound (actually, the function bound with 'click.specialSubmit' tests it).
I ran into this bug when working with Cufon and jQuery Address and boiled it down to a bare HTML/JS sample, a jQuery sample and a Cufon/jQuery Address sample:
Extensively discussed at: http://www.sitecrafting.com/blog/jquery-cufon-dont-mix/
Reported to Sizzle: https://github.com/jquery/sizzle/issues/17
(I tried to get a sample work on jsFiddle, but this did not work out because of the bug! See http://jsfiddle.net/kwsuN/3/)