Permalink
Browse files

Committing patch for Jira bug XALANJ-2473 submitted by Martin von Gag…

…ern.

Corrects the implementation of the DOM Level 3 Node.getTextContent() method
which was return null for element nodes, rather than the string values of all
the text node descendants in document order.

git-svn-id: https://svn.apache.org/repos/asf/xalan/java/trunk@889881 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 5bb3325 commit a00015c6277a96a3b3920ee1935328fab189d3ab Henry Zongaro committed Dec 12, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/org/apache/xml/dtm/ref/DTMNodeProxy.java
@@ -1940,7 +1940,7 @@ public void setTextContent(String textContent)
* @since DOM Level 3
*/
public String getTextContent() throws DOMException {
- return getNodeValue(); // overriden in some subclasses
+ return dtm.getStringValue(node).toString();
}
/**

0 comments on commit a00015c

Please sign in to comment.