- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Thu, 20 Nov 2008 11:32:39 -0500
- 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 UTC