Re: [jQuery] XPath '[EMAIL PROTECTED]' doesn't work on XML documents

2006-09-11 Thread Mark Gibson
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? }

[jQuery] XPath '[EMAIL PROTECTED]' doesn't work on XML documents

2006-09-08 Thread Mark Gibson
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

Re: [jQuery] XPath '[EMAIL PROTECTED]' doesn't work on XML documents

2006-09-08 Thread Ian B
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

Re: [jQuery] XPath '[EMAIL PROTECTED]' doesn't work on XML documents

2006-09-08 Thread Dave Methvin
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

Re: [jQuery] XPath '[EMAIL PROTECTED]' doesn't work on XML documents

2006-09-08 Thread John Resig
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) !=