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