Index: gnu/xml/dom/DomAttr.java =================================================================== RCS file: /cvsroot/classpath/classpath/gnu/xml/dom/DomAttr.java,v retrieving revision 1.3 diff -u -r1.3 DomAttr.java --- gnu/xml/dom/DomAttr.java 2 Jul 2005 20:32:15 -0000 1.3 +++ gnu/xml/dom/DomAttr.java 6 Dec 2006 18:25:53 -0000 @@ -316,7 +316,7 @@ private void mutating(String oldValue, String newValue, short why) { - if (!reportMutations || parent == null) + if (!reportMutations || parent == null || equal(newValue, oldValue)) { return; } Index: gnu/xml/dom/DomNode.java =================================================================== RCS file: /cvsroot/classpath/classpath/gnu/xml/dom/DomNode.java,v retrieving revision 1.16 diff -u -r1.16 DomNode.java --- gnu/xml/dom/DomNode.java 16 Sep 2006 17:28:13 -0000 1.16 +++ gnu/xml/dom/DomNode.java 6 Dec 2006 18:25:54 -0000 @@ -1562,7 +1562,7 @@ // Climb to the top of this subtree and handle capture, letting // each node (from the top down) capture until one stops it or // until we get to this one. - current = parent; + current = (parent == null) ? this : parent; if (current.depth >= ANCESTORS_INIT) { DomNode[] newants = new DomNode[current.depth + 1];