Bug Tracker

Ticket #4833: isXMLDoc.patch

File isXMLDoc.patch, 585 bytes (added by andr3a, 11 years ago)

more compact/fast work around

  • core.js

     
    315315        isXMLDoc: function( elem ) {
    316316                // documentElement is verified for cases where it doesn't yet exist
    317317                // (such as loading iframes in IE - #4833)
    318                 var documentElement = (elem.ownerDocument || elem).documentElement;
    319                 return !!documentElement && documentElement.nodeName !== "HTML";
     318                return ((elem.ownerDocument || elem).documentElement || 0).nodeName !== "HTML";
    320319        },
    321320
    322321        // Evalulates a script in a global context