Bug Tracker

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#4657 closed bug (invalid)

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)

index.html (1.3 KB) - added by withincontext 10 years ago.
jquery-1.3.2.js (122.1 KB) - added by withincontext 10 years ago.

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by withincontext

Attachment: index.html added

Changed 10 years ago by withincontext

Attachment: jquery-1.3.2.js added

comment:1 Changed 10 years ago by dmethvin

Resolution: invalid
Status: newclosed

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

comment:2 in reply to:  1 Changed 10 years ago by withincontext

Replying to 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.

Note: See TracTickets for help on using tickets.