W3C home > Mailing lists > Public > public-html@w3.org > November 2008

Re: An HTML language specification

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 20 Nov 2008 11:32:39 -0500
Message-ID: <49259127.9060304@mit.edu>
To: public-html@w3.org

Mark Baker wrote:
> On Thu, Nov 20, 2008 at 10:49 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
>> The problem is that the "how do I parse a document?" spec needs to somehow
>> reference scripts.  Or it has to provide sufficiently rich hooks to allow
>> script behavior to be defined independently of it (which will basically make
>> it just as complex as the currently-defined parser, if not more so).
....
> Once a document.write() occurs, from my POV you've got a brand new
> HTML document with a different meaning than the one it "replaced".
> Someplace else other than the language specification, you could
> specify the exact state machine that describes how a processor manages
> the transition between these two documents.
> 
> So you wouldn't require two parsing specs AFAICT, just one parsing
> spec and a state machine.

It sounds like you'd prefer the "parser with sufficiently rich hooks", 
then?  Again, I think that would actually be more complicated than what 
we have now.  What's the benefit?

-Boris
Received on Thursday, 20 November 2008 16:33:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:25 GMT