summaryrefslogtreecommitdiff
path: root/gnu/xml/dom
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2006-12-08 10:31:49 +0000
committerMark Wielaard <mark@klomp.org>2006-12-08 10:31:49 +0000
commit51043a0701953cd3469dabeec7757c0251b3f24d (patch)
tree25ca470cedd6cb500dfc3d1baab0f44852993828 /gnu/xml/dom
parent908637946b0d2306d9f080af6af81cc6b45779eb (diff)
downloadclasspath-51043a0701953cd3469dabeec7757c0251b3f24d.tar.gz
2006-12-06 Ben Konrath <bkonrath@redhat.com>
Fixes PR 29853. * gnu/xml/dom/DomAttr.java: Don't report mutation if oldValue and newValue are the same. * gnu/xml/dom/DomNode.java: Set parent if null during mutation. 2006-12-06 Chris Burdess <dog@gnu.org> Fixes PR 29272. * javax/xml/parsers/DocumentBuilderFactory.java: Fix broken Javadoc. * gnu/xml/stream/SAXParser.java: Fix file descriptor leak. 2006-12-06 Chris Burdess <dog@gnu.org> Fixes PR 29264. * gnu/xml/stream/XMLStreamWriterImpl.java: Allow arbitrary text in writeDTD method. 2006-12-056 Chris Burdess <dog@gnu.org> Fixes PR 28816. * javax/xml/validation/SchemaFactory.java: Use correct algorithm to discover schema factory implementation class.
Diffstat (limited to 'gnu/xml/dom')
-rw-r--r--gnu/xml/dom/DomAttr.java2
-rw-r--r--gnu/xml/dom/DomNode.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/gnu/xml/dom/DomAttr.java b/gnu/xml/dom/DomAttr.java
index 8673a7961..31d7af2d2 100644
--- a/gnu/xml/dom/DomAttr.java
+++ b/gnu/xml/dom/DomAttr.java
@@ -316,7 +316,7 @@ public class DomAttr
private void mutating(String oldValue, String newValue, short why)
{
- if (!reportMutations || parent == null)
+ if (!reportMutations || parent == null || equal(newValue, oldValue))
{
return;
}
diff --git a/gnu/xml/dom/DomNode.java b/gnu/xml/dom/DomNode.java
index 269038aa7..9af3f3e54 100644
--- a/gnu/xml/dom/DomNode.java
+++ b/gnu/xml/dom/DomNode.java
@@ -1562,7 +1562,7 @@ public abstract class DomNode
// 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];