Closed scribetw closed 1 year ago
This is an interesting issue, but possibly contradicting with the requirement of some users to be able to serialize the parsed XML back to an "identical" byte-string.
Yes, it could be a breaking feature for the current users. An option to turn it on/off might be feasible. See: https://github.com/xmldom/xmldom/blob/0.8.6/lib/dom-parser.js#L47-L55
I think this can be closed as completed.
Hi, I want to report a spec issue here.
Issue
https://www.w3.org/TR/xml/#sec-line-ends
See also: https://github.com/xmldom/xmldom/issues/303
Test case
Expect: PASS Actual: FAIL
Workaround
Replace '\r\n' into '\n' before passing to
XmlDocument.parse
.