New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work around potentially buggy DOM implementation Node.getTextContent() #100

Closed
rolfl opened this Issue Nov 8, 2012 · 0 comments

Comments

Projects
None yet
1 participant
@rolfl
Collaborator

rolfl commented Nov 8, 2012

JDOM 2.x starts using getTextContent() to get the value of Text nodes when converting a DOM document to JDOM in the DocumentBuilder class.

There are potential issues in some DOM libraries, and it is not necessary to do that. To avoid potential bugs, use getNodeValue() instead (like JDOM 1.x did).

Since getNodeValue() comes from DOM1 and getTextContent() comes from DOM3 we should run in to fewer problems with getNodeValue().

See further discussion here: http://jdom.markmail.org/thread/zzg72amluw2gdiht

@rolfl rolfl closed this in 54ed0cc Nov 8, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment