John Resig wrote:
>> Just a hunch, but IE's DOM support isn't native Javascript. If they got
>> their typelib wrong it may be trying to call getAttribute rather than check
>> elem for a getAttribute property. Can you replace that last line with this
>> and see if it works?
>>
>> } else if ( typeof(elem.getAttribute) != "undefined" ) {
Ok, this fixes one problem, but a further error occurs on line 641:
return elem.getAttribute( name, 2 );
It appears that the getAttribute method on XML elements only accepts
a single argument:
return elem.getAttribute( name );
From the MS docs the second argument of 2 forces the method to be
case-sensitive, which if I'm correct, isn't required by any browser
other than IE. So is it possible to detect whether the browser is IE
and the document is an HTML doc - in which case use the two args method,
otherwise call with just one arg.
Cheers
- Mark
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/