dom.js icon indicating copy to clipboard operation
dom.js copied to clipboard

Reality and DOMCore disagree about document.ownerDocument

Open fzzzy opened this issue 14 years ago • 1 comments

jQuery expects Document.ownerDocument to be null, and both Firefox and Chrome return null. dom.js depends on Document.ownerDocument being itself, and has a comment that says DOMCore requires it:

    // DOMCore says that documents are always associated with themselves.
    this.ownerDocument = this;

fzzzy avatar Oct 04 '11 04:10 fzzzy

document.ownerDocument being document puts jQuery into an infinite loop.

fzzzy avatar Oct 04 '11 04:10 fzzzy