[jQuery] [Fwd: jquery bug 164] (fix?)
Okay, this version doesn't error out at least:
http://methvin.com/junk/jquery-xml-bug.html?patched
The fix is to change this line of attr() :
Old:
} else if ( elem.getAttribute != undefined && elem.tagName ) { // IE
elem.getAttribute passes even for style
New:
} else if ( typeof(elem.getAttribute) != "undefined" && elem.tagName ) {
\
I think IE is trying to _call_ elem.getAttribute for some reason, must be a
bug in the COM typelib for the XML control.
-----Original Message-----
From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On
Behalf Of Brandon Aaron
Sent: Saturday, November 04, 2006 1:01 PM
To: jQuery Discussion.
Subject: Re: [jQuery] [Fwd: jquery bug 164]