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/

Reply via email to