Standardize on using .nodeName in place of .tagName. Fixes jQuery bug #4923.
This commit is contained in:
parent
0d5c3a68a0
commit
48e9a39995
5 changed files with 12 additions and 12 deletions
|
@ -481,7 +481,7 @@ jQuery.extend({
|
|||
xml = type == "xml" || !type && ct && ct.indexOf("xml") >= 0,
|
||||
data = xml ? xhr.responseXML : xhr.responseText;
|
||||
|
||||
if ( xml && data.documentElement.tagName == "parsererror" ) {
|
||||
if ( xml && data.documentElement.nodeName == "parsererror" ) {
|
||||
throw "parsererror";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue