Standardize on using .nodeName in place of .tagName. Fixes jQuery bug #4923.

This commit is contained in:
John Resig 2009-07-19 13:32:53 +00:00
parent 0d5c3a68a0
commit 48e9a39995
5 changed files with 12 additions and 12 deletions

View file

@ -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";
}