Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit a00015c6277a96a3b3920ee1935328fab189d3ab 1 parent 5bb3325
Henry Zongaro authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/org/apache/xml/dtm/ref/DTMNodeProxy.java
View
2  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();
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.