Ticket #6693 (closed feature: fixed)
Add cross-browser XML parsing support
|Reported by:||dmethvin||Owned by:||jaubourg|
|Keywords:||xml parse parseXML needsTest||Cc:|
As documented, the $("<html string>") method only supports parsing HTML strings, but users often try to parse XML strings with it. This doesn't work since jQuery uses the .innerHTML property for parsing and implicitly enforces HTML rules on the string. IE in particular will throw errors or misparse XML strings passed to $() in this way.
It is unlikely that $("<xml string>") can be implemented because it isn't trivial to differentiate an XML string from an HTML one. Perhaps a $.parseXML("<xml string>") method?
- Owner set to jaubourg
- Status changed from open to assigned
comment:10 Changed 4 years ago by jaubourg
- Status changed from assigned to closed
- Resolution set to fixed