Fixed a bug with the isXMLDoc test - also made sure that isXMLDoc was handling the case where documentElement is undefined (which only occurs on HTML documents in IE).

This commit is contained in:
John Resig 2009-08-27 20:07:45 +00:00
parent 957cd6fb2a
commit 569c8b45c0
2 changed files with 3 additions and 2 deletions

View file

@ -281,7 +281,7 @@ test("isXMLDoc - HTML", function() {
try {
var body = jQuery(iframe).contents()[0];
ok( jQuery.isXMLDoc( body ), "Iframe body element" );
ok( !jQuery.isXMLDoc( body ), "Iframe body element" );
} catch(e){
ok( false, "Iframe body element exception" );
}