ltx icon indicating copy to clipboard operation
ltx copied to clipboard

stricter LtxParser

Open sonnyp opened this issue 8 years ago • 1 comments

ltx.parse('<o/>f')
ltx.parse('<o></o>f<b/>')
ltx.parse('<o>f</b>')

should fail, currently extra data is ignored

sonnyp avatar Feb 24 '17 00:02 sonnyp

xmpp.js does something like this

https://github.com/xmppjs/xmpp.js/blob/main/packages/xml/lib/Parser.js

Not sure how much ltx should enforce strict xml or what should happen on invalid xml. Perhaps it's best to leave to the users to decide?

In which case this should be documented eventually.

sonnyp avatar Aug 21 '21 19:08 sonnyp