You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure what to document, because the example that you posted is not well-formed XML to begin with so not sure what the library should do in case of invalid input data.
If by well-formed XML, you mean a parent root node is required, that should be something to begin with.
And secondly, if multiple root nodes are not allowed, it should consistently fail.
Yes, to be valid XML you need one single root node, otherwise it's not XML.
But yeah, it should consistently fail on multiple root nodes, that's for sure. If it doesn't then it is a bug.
Here's a repro:
Alternatives that work
<div><p>hello world</p><p> </p><p> </p></div>
(wrap into root node)<p>hello world</p><p> </p><p>something</p>
(not use empty string)It would be good if expected behaviors are documented.
The text was updated successfully, but these errors were encountered: