You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
that simply return the value of an element while the javadoc says
ELEMENT_NODE, ATTRIBUTE_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, DOCUMENT_FRAGMENT_NODE
concatenation of the textContent attribute value of every child node, excluding COMMENT_NODE and PROCESSING_INSTRUCTION_NODE nodes. This is the empty string if the node has no children.
The text was updated successfully, but these errors were encountered:
laeubi
changed the title
org.eclipse.lemminx.dom.DOMNode.getTextContent() seem to be implemented wrong
org.eclipse.lemminx.dom.DOMNode.getTextContent() seem to be implemented wrong (or incomplete)
Oct 27, 2024
org.eclipse.lemminx.dom.DOMNode.getTextContent()
always returnnull
if Eclipse is correct no class overrides DOMNode herelemminx/org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/dom/DOMNode.java
Line 829 in 744de35
that simply return the value of an element while the javadoc says
For the following example document
I get the following output for element
<bnd>
while the text content has to be something like
The text was updated successfully, but these errors were encountered: