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
which appears to reside in the 'attr' function, the line is:
} else if ( elem.getAttribute ) {
as you see the message is a bit vague, i don't see a function
call here or an attempt at assigning a property!
I've attached demonstration files html/js/xml.
(.js renamed to .jsx - as the mail server rejected it!!!)
BTW, this works fine in Firefox, what a surprise! ;)
Cheers
- Mark Gibson
(jQuery: r249)
(IE: 6)
Title: jQuery Testing
Test
Your
Mum
<test> <data stuff="0"/> <data stuff="1"/> </test>
$(function() {
alert($("[EMAIL PROTECTED]").length); // This works (shows: 2)
$.get("selector.xml", function(xml) {
alert($("[EMAIL PROTECTED]", xml).length); // This fails in IE
});
});
_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
