[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SAX LexicalHandler::comment issue
- From: David Brownell <david-b@pacbell.net>
- To: xml-dev@lists.xml.org
- Date: Thu, 05 Jul 2001 11:50:10 -0700
> > I'd rather discourage folk from using comments in applications,
> > actually ... :) So far as I know, the primary use case for reporting
> > comments is to support DOM bells'n'whistles. And W3C is,
> > finally, looking at ways to disable such noise there.
>
> I hope you're right, but what's the evidence for your assertion that the W3C
> is looking at ways to "disable such noise"? There are "comment information
> items" in the latest InfoSet draft ...
http://www.w3.org/TR/2001/WD-DOM-Level-3-ASLS-20010607/load-save.html#LS-Interfaces-DOMBuilder
Setting the feature named "comments" to 'false" discards them.
Unfortunately the defaults are to create all the noise nodes: comments,
cdata, ignorable whitespace, and entity refs all have annoying default
settings (including those node types, rather than discard them).
- Dave