[whatwg] [WebApps] "html" start tag token in main phase

J. King jking at dark-phantasy.com
Fri Dec 8 12:57:04 PST 2006


The root element phase dictates that any start tag (including "html")  
produces an <html> element in the document and is then re-processed in the  
main phase.  The main phase then states that if an "html" start tag token  
is encountered it produces a parse error -unless- it's the first start tag.

Wouldn't it be simpler to just properly process the "html" start tag in  
the root element phase instead of having such a special case?  I'm  
certainly finding this special case to be needlessly difficult to deal  
with.

-- 
J. King
http://jking.dark-phantasy.com/



More information about the whatwg mailing list