Re: Highlighting issue of XML support in DOM 4

On Tue, Jan 22, 2013 at 4:32 PM, Daniel Glazman <daniel@glazman.org> wrote:
> Oh come on... The XML declaration belongs to the
> document instances and there should not be represented in the OM?

SAX2 ContentHandler does the best job at separating the significant
from the artifacts in XML and the XML declaration is not exposed in
SAX2 ContentHandler, either.

On Tue, Jan 22, 2013 at 4:37 PM, Noah Mendelsohn <nrm@arcanedomain.com> wrote:
> I think
> that indicating whether something is an XML or HTML document is deeper

Yeah, browsers maintain an HTMLness flag in the data model. That's
different from the XML declaration.

-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/

Received on Tuesday, 22 January 2013 14:47:32 UTC