Mark Gibson wrote:
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?
}
Hello,
I've come across a strange bug in IE:
I've loaded an XML doc using $.get(), and
selecting nodes using an XPath with a predicate
containing an attribute: $([EMAIL PROTECTED], xml)
IE just throws a wobbly:
Line: 639
Error: Wrong number of arguments or invalid property assignment
Mark
Yes - I flagged this up a few days ago
http://www.nabble.com/Searching-for-XML-attribute-tf2215205.html Link Here
Still waiting for resolution - don't know if I need to raise a bug report...
Ian
Mark Gibson-8 wrote:
Hello,
I've come across a strange bug in IE:
I've loaded an XML
IE just throws a wobbly:
Line: 639
Error: Wrong number of arguments or invalid property assignment
which appears to reside in the 'attr' function, the line is:
} else if ( elem.getAttribute ) {
Just a hunch, but IE's DOM support isn't native Javascript. If they got
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) !=