[owasp-antisamy] DOM vs SAX, empty elements

Dan Rabe dan.rabe at oracle.com
Mon Jun 25 16:23:57 UTC 2012

I thought I remembered seeing some discussion of this before, but I 
can't find it at the moment, so my apologies if this has already been 
covered somewhere.

For the input document "<p></p>", the DOM parser returns an empty 
string, but the SAX parser returns "<p></p>". I'm not sure which should 
be considered "right", but I was wondering if the difference in behavior 
was a known issue, and if so, are there plans to resolve it?


More information about the Owasp-antisamy mailing list