Skip to content

Fix PIs appearing before text nodes. #34

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

Merged
merged 1 commit into from
Dec 3, 2014

Conversation

bartschuller
Copy link

The bug:

<foo>aaa<?pi?>bbb</foo>

is parsed as

<foo><?pi?>aaabbb</foo>

by loadXML.

Cause and fix:

The SAX handler that's used when you call loadXML didn't append
the text buffer to the current node list before pushing a
processing-instruction node.

The SAX handler that's used when you call loadXML didn't append
the text buffer to the current node list before pushing a
processing-instruction node.
@adriaanm adriaanm added this to the 1.0.3 milestone Dec 3, 2014
@adriaanm
Copy link
Contributor

adriaanm commented Dec 3, 2014

Awesome! Thank you, @bartschuller! This will ship with v1.0.3, which will be included in Scala 2.11.5

Sorry about the delay in reviewing!

adriaanm added a commit that referenced this pull request Dec 3, 2014
Fix PIs appearing before text nodes.
@adriaanm adriaanm merged commit 1104980 into scala:master Dec 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants