W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2008

[whatwg] "html" start tag token in the root element phase

From: Philip Taylor <excors+whatwg@gmail.com>
Date: Mon, 11 Feb 2008 23:52:20 +0000
Message-ID: <ea09c0d10802111552o2835ae76rd30eadd54dc886eb@mail.gmail.com>
On 29/06/2007, Henri Sivonen <hsivonen at iki.fi> wrote:
> If the spec dealt with the "html" start tag token directly in the
> root element phase, the parse error in the main phase wouldn't need
> to be conditional. (Implementations that experience a perf benefit
> from not mutating the attributes of a node probably want to hoist the
> "html" node creation to the root element phase for perf reasons, too.)

There's also an issue with:

  <!doctype html>

not producing any parse error, because the <html> is the first start
tag token (at least under my interpretation) and therefore is
considered valid. Handling <html> specially in the root element phase
seems like a reasonable way of fixing this.

Philip Taylor
excors at gmail.com
Received on Monday, 11 February 2008 15:52:20 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:00 UTC