Skip to main content

Bug Tracker

Side navigation

#9807 closed bug (patchwelcome)

Opened July 12, 2011 10:21AM UTC

Closed July 12, 2011 02:35PM UTC

Last modified October 30, 2013 04:13PM UTC

MSIE7/8 alerts a 'Failed' error when trying to get some attributes of VML objects

Reported by: lmeurs Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:

(Like mentioned at

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:

Reported to Sizzle:

(I tried to get a sample work on jsFiddle, but this did not work out because of the bug! See

Attachments (0)
Change History (3)

Changed July 12, 2011 02:35PM UTC by john comment:1

resolution: → patchwelcome
status: newclosed

Unfortunately this is not likely something that we'll get around to fixing. If there is a patch (that doesn't cripple performance or bloat file size) then it's certainly something that we'll take a look at:

Changed September 03, 2013 05:16PM UTC by comment:2

in the JQuery file u may add this code, it may fix the problem:-

if ( == "shape") {

return false;


add it in this place:-

jQuery.event.add(this, "click.specialSubmit", function (e) {

var elem =;

if ( == "shape") {

return false;


var type = elem.type;

Changed October 30, 2013 04:13PM UTC by gavenkoa comment:3

FYI this page still live: (support issues with SVG/VML/etc).