Hi Stephen,

This bug is related to one mentioned earlier - where IE has trouble
doing attribute searches in  XML documents. You can watch this bug
report for when it'll be fixed:
http://jquery.com/dev/bugs/bug/164/

But since it's so nasty, it'll probably be soon.

--John

On 10/11/06, Stephen Woodbridge <[EMAIL PROTECTED]> wrote:
> I have done some additional testing and it looks like the xpath
> attribute selectors are broken for IE6 in jQuery 1.0.2
>
> alert($("//feature", xml).text());  // works
> alert($("//[EMAIL PROTECTED]", xml).text());  // js error
>
> BTW, there is a link under the textarea that will throw the xml into a
> separate page so it is more readable.
>
> -Steve
>
> Stephen Woodbridge wrote:
> > OK, I am obviously missing something here. My code works on FF 1.0.5,
> > Opera 8.5.4 and 9.0.2 but is throwing an error in IE6. I have located
> > the line generating the error (no thanks to the IE error message line
> > that is really bogus):
> >
> > http://imaptools.com:8081/maps/demo.html
> >
> > just double click on the map, and it generates an Ajax call. The xml is
> > loaded in the textarea under the map, which works fine. I then have a
> > schema hash the I loop thru and extract various items from the xml and
> > put them into html tables and stuff them into $("#rgeo2").html(str);
> >
> > The problem is occurring when I try to access the xml using xpath like:
> >
> > imaptools-demo.js:233
> >
> > var description = $("//[EMAIL PROTECTED]'"+feature+"']/description",
> > xml).text();
> >
> > This is the first xpath and it is generating the error. Like I said this
> > works fine in other browsers on is a problem in IE6 (have not tested it
> > in IE7, probably has problems in IE 5.5).
> >
> > Am I using this wrong?
> > Looking at the jQuery cheat sheet, I don't see .text() did that get
> > deprecated? what should I be using in that case? .val()? Nope val()
> > doesn't work.
> >
> > Any help would be greatly appreciated.
> >
> > -Steve
> >
> > This is kind of like chess ... it is easy to play, but takes some
> > thought and training to master!

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to