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
Hmm, the positional info of sax isn’t very good.
I’m not a giant fan of sax, it’s very loose, pretty big.
I think I’d like to switch to something else. Perhaps https://github.com/rgrove/parse-xml. Seems fast. Halve the size. Well-maintained and modern. Doesn’t expose positional info from what I can see though
The only differences between fromXml and what I just made are correct positions and no errors (lezer is designed to parse no matter what, though it can be instructed to throw on the first error).
Initial checklist
Affected packages and versions
2.0.1
Link to runnable example
No response
Steps to reproduce
Exectue
fromXml("<foo>text&text</foo>")
Expected behavior
The
offset
position should start at5
and end at18
Actual behavior
The
offset
position should start at5
and end at15
Affected runtime and version
[email protected]
Affected package manager and version
No response
Affected OS and version
No response
Build and bundle tools
No response
The text was updated successfully, but these errors were encountered: