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?
Change History (12)
comment:5 Changed 6 years ago by
|Owner:||set to jaubourg|
|Status:||open → assigned|