-
Notifications
You must be signed in to change notification settings - Fork 93
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
Implement DOMNode.getTextContent() according to API #1704
Conversation
Failures seem unrelated here, ready to be merged. |
@laeubi it would be very nice if you could add more tests like:
|
Yes more tests would be good, but as this is rather straight forward implementation I do not plan to put too much effort into this especially given that no one complained ever about the old implementation I suspect it is not really important for lemminx users?!? |
I think it is important for lemminx extensions which can use getTextContent. Today we have some piece of code which uses getTextContent, tests seems working but my fear is that we don't have enough tests to cover your changes. |
The main change is that Elements no don't return |
Thanks for adding new tests. Last changes that I think it could be good:
assertTextContent("Hello</a", "Hello")
|
@laeubi is there any chance that you do my suggestion in order to merge your PR? |
Yes I'll hopefully complete that soon. |
Thanks! I'm sorry to ask you to do that (writting tests are boring) but your PR could have some impacts. |
@laeubi I am waiting for your update to merge your PR and create the lemminx release |
I tried to implement the method as suggested but at laest locally for me the xerxes parser bails out for |
Sadly same problem on CI
https://stackoverflow.com/questions/17515333/noclassdeffounderror-org-w3c-dom-elementtraversal says one should use |
Fix eclipse-lemminx#1695 Signed-off-by: Christoph Läubrich <[email protected]>
I now changed this to https://mvnrepository.com/artifact/xml-apis/xml-apis/1.4.01 The xml API seem to be completely wrecked:
|
@angelozerr seems only the usual build instability now... |
Thanks @laeubi ! |
Fix #1695