Mercurial > hg > openjdk > bsd-port > jaxp
changeset 1167:25a1b88d7a47 jdk7u80-b02
8032908: getTextContent doesn't return string in JAXP
Reviewed-by: joehw
author | aefimov |
---|---|
date | Thu, 31 Jul 2014 11:34:34 +0400 |
parents | 82715bc68eb6 |
children | 498ddd5ee22c |
files | src/com/sun/org/apache/xml/internal/dtm/ref/sax2dtm/SAX2DTM2.java |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/com/sun/org/apache/xml/internal/dtm/ref/sax2dtm/SAX2DTM2.java Tue Jul 22 09:21:23 2014 +0400 +++ b/src/com/sun/org/apache/xml/internal/dtm/ref/sax2dtm/SAX2DTM2.java Thu Jul 31 11:34:34 2014 +0400 @@ -3145,7 +3145,11 @@ m_data.elementAt(-dataIndex+1)); } } - else if (DTM.ELEMENT_NODE == type || DTM.DOCUMENT_FRAGMENT_NODE == type + else if (DTM.ELEMENT_NODE == type) + { + return getStringValueX(nodeHandle); + } + else if (DTM.DOCUMENT_FRAGMENT_NODE == type || DTM.DOCUMENT_NODE == type) { return null;