W3C home > Mailing lists > Public > www-html@w3.org > February 2009

Re: Fwd: HTML5 and XHTML2 combined (a new approach)

From: David Woolley <forums@david-woolley.me.uk>
Date: Mon, 23 Feb 2009 07:53:57 +0000
Message-ID: <49A25615.6080006@david-woolley.me.uk>
To: Philip Taylor <pjt47@cam.ac.uk>
CC: www-html@w3.org, Giovanni Campagna <scampa.giovanni@gmail.com>
Philip Taylor wrote:

> 
> You can write a streaming SAX parser for HTML5 without buffering 
> anything into a tree, as long as you treat some errors as fatal (e.g. 

I thought it was one of the key design principles of HTML5 that all 
parsers treat parsing "errors" alike.  That means that, if a DOM based 
parser can recover from an error, all conforming parsers must do so.

> "<table>foo" is non-streamable because the text "foo" comes before the 
> <table> in the parsed document). If you don't hit a non-streamable 
> error, the output from the SAX parser has to be equivalent to what you'd 
> get by parsing into a DOM and then emitting it as SAX, but there's no 
> need to actually create a DOM.

-- 
David Woolley
Emails are not formal business letters, whatever businesses may want.
RFC1855 says there should be an address here, but, in a world of spam,
that is no longer good advice, as archive address hiding may not work.
Received on Monday, 23 February 2009 07:55:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:15 GMT