Side navigation
#4657 closed bug (invalid)
Opened May 13, 2009 11:01PM UTC
Closed May 13, 2009 11:49PM UTC
Last modified May 14, 2009 01:17AM UTC
Traversing/find bug in Firefox 2.0.20 when dealing with a string of XML
Reported by: | withincontext | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | unfiled | Version: | 1.3.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
The attached code works in all browsers (IE6+, Safari 3+, Firefox 3.x) except for Firefox 2.0.20. Expected results is an output to the <body> of:
foo1
foo2
bar1
bar2
In Firefox 2.0.20, I get the following:
foo1
bar1
bar2
Attachments (2)
Change History (2)
Changed May 13, 2009 11:49PM UTC by comment:1
resolution: | → invalid |
---|---|
status: | new → closed |
Changed May 14, 2009 01:17AM UTC by comment:2
Replying to [comment:1 dmethvin]:
jQuery's $("html") construct only parses html, not xml, on all platforms. You've parsed it as XML on IE but not on other browsers. The docs are very clear on this: http://docs.jquery.com/Core/jQuery#htmlownerDocument
You're right, I'm very sorry for wasting your time. I'm converting the string to XML using DOMParser() and it is working now. Thank your replying and pointing me in the right direction.
jQuery's $("html") construct only parses html, not xml, on all platforms. You've parsed it as XML on IE but not on other browsers. The docs are very clear on this:
http://docs.jquery.com/Core/jQuery#htmlownerDocument