DOMDocument : jQuery 1.3.1: isXml causing endless recursion
-
Thatcher
- State changed from new to open
If I call document.ownerDocument in ff3 in firebug console I get null. So I think this is right.
The issue is total cruft from the integration of the pure js dom.
The big problem is that DOMDocument inherits from DOMNode which uses this.ownerDocument.implementation all over the place.
I have to figure out a good solution for this.
Thanks for finding this.
-
Thatcher
- Assigned user changed from thatcher.christopher (at gmail) to Thatcher
still working on this. I'm going to have to refactor the some of the dom stuff or might add a getter to the dom document so it only exposes the ownerDocument as null there.
-
larry.karnowski (at gmail)
Thatcher, now that I can run the jQuery 1.3.1 compatibility test suite from my env.js working directory, I'm starting to refactor the DOM a bit to tackle that null ownerDocument.
-
Thatcher
this should be fixed. I added a util function ownerDocument that takes a node and return the ownerdocument or the document if the node is a document node. this allows us to us the method internally to safely set ownerDocument to null in DOMDocument while inheriting everything from DOMNode.
Still leaving this open till we verify it fixes the recursion.
Once I get larry's test framework in and verify I'll close.
-
Thatcher
- State changed from open to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.