W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2007

[whatwg] Tree construction: link, base and meta in the "in head" insertion mode

From: Thomas Broyer <t.broyer@gmail.com>
Date: Thu, 11 Oct 2007 23:10:16 +0200
Message-ID: <a9699fd20710111410k53b2c82cj168775c6e0287565@mail.gmail.com>
The algorithm says to "insert an HTML element for the token" when
encountering a start tag whose tag name is one of "meta", "link" or
"base"; but unlike other void elements, it doesn't say to "immediately
pop the current node off the stack of open elements", which means
following elements should be appended as children of the link, base or
meta element, not a sibling.

For reference, html5lib and Validator.nu's HTML Parser currently don't
use the "insert an HTML element" algorithm for these cases, they
instead use a special algorithm which doesn't deal with the "stack of
open elements" at all. HTML Parser uses its
"appendVoidElementToCurrentMayFoster" algorithm for every void element
while html5lib follows the "insert then pop" algorithm for these (img,
hr, etc)

-- 
Thomas Broyer
Received on Thursday, 11 October 2007 14:10:16 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:37 UTC