dom-js icon indicating copy to clipboard operation
dom-js copied to clipboard

Empty tag serialization

Open ianobermiller opened this issue 12 years ago • 2 comments

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>.

ianobermiller avatar Nov 01 '12 05:11 ianobermiller

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.

teknopaul avatar Dec 08 '12 04:12 teknopaul

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.

ianobermiller avatar Dec 14 '12 17:12 ianobermiller