Project

Profile

Help

Revision c1da611d

Added by Michael Kay over 12 years ago

Fix bug 2689961 (DOM wrapper uses == to compare node identity)

View differences:

latest9.1/bj/net/sf/saxon/dom/DocumentWrapper.java
55 55
        if (node == this.node) {
56 56
            return this;
57 57
        }
58
        if (node.getOwnerDocument() == this.node) {
58
        Document doc = node.getOwnerDocument();
59
        if (doc == this.node || (domLevel3 && doc != null && doc.isSameNode(this.node))) {
59 60
            return makeWrapper(node, this);
60 61
        } else {
61 62
            throw new IllegalArgumentException(

Also available in: Unified diff