dom-js
dom-js copied to clipboard
Empty tag serialization
You mention in the "gotchas" that you could fix how "An empty tag will always be serialized in the short form ."
Is it possible to detect the input form and output it the same way? From the sax parser docs, and playing around with it, it seems there is no way to distinguish between <el/>
and <el></el>
.
Sorry missed this one for a bit, its seems your answering your own question tho and that if sax does not pass this info we cant keep it in the dom. Is this still and issue for you do you need fix? There is no reason we cant fix the sax parser if thats needed.
Thanks for the response. I will take a crack at exposing this in the sax parser as well as dom-js. I'll send a pull request if I get it working.