Trailing whitespace in processing instructions not preserved #497
Labels
bug
Something isn't working
good first issue
Good for newcomers
help-wanted
External contributions welcome
spec:DOM-Level-2
https://www.w3.org/TR/DOM-Level-2-Core/
xml:well-formed
https://www.w3.org/TR/xml11/#dt-wellformed
Describe the bug
Trailing whitespace in PI is not preserved.
One trailing whitespace is preserved if the PI does not have data.
To Reproduce
https://stackblitz.com/edit/js-xmldom-template-mcmkty?file=index.js
Expected behavior
The PI without data should have no trailing whitespace.
The trailing whitespace in PI with data should be preserved.
From DOM Level 1 spec:
Runtime & Version:
xmldom version: 0.8.8
The text was updated successfully, but these errors were encountered: