Parser erroneously adds "@_/": true
attr for self-closing stop nodes
#654
Labels
"@_/": true
attr for self-closing stop nodes
#654
Description
When the
allowBooleanAttributes
flag is set onXMLParser
, the parser will interpret the closing/
in a self-closing stop node as a boolean attribute. This introduces further problems when attempting to build the parsed data back into a string, as it produces invalid XML. E.g.,<script src="script.js" />
becomes<script src="script.js" //>
(note the double slash).It is possible to implement a workaround by adding an
updateTag
method that removes@_/
attributes.Input
Code
Output
expected data
Would you like to work on this issue?
Bookmark this repository for further updates. Visit SoloThought to know about recent features.
The text was updated successfully, but these errors were encountered: