[whatwg] main element parsing behaviour

Simon Pieters simonp at opera.com
Wed Nov 7 03:51:17 PST 2012


On Wed, 07 Nov 2012 12:46:36 +0100, Simon Pieters <simonp at opera.com> wrote:

> On Wed, 07 Nov 2012 11:40:57 +0100, Steve Faulkner  
> <faulkner.steve at gmail.com> wrote:
>
>> Hi Anne,
>>
>> That feedback as stated was mainly for Hixie, who dismissed it.
>>
>> I have sought further opinion, but do not have the expertise to know  
>> what I
>> need to do with it.
>>
>> for example, I get the sense that implementers in general do not want to
>> mess with the parsing algorithm, so does that mean. I don't need to put
>> anything in the spec?
>
> That's right.

OTOH, if we wanted <main> to parse like <aside>, we'd add "main" to:

[[
A start tag whose tag name is one of: "address", "article", "aside",  
"blockquote", "center", "details", "dialog", "dir", "div", "dl",  
"fieldset", "figcaption", "figure", "footer", "header", "hgroup", "menu",  
"nav", "ol", "p", "section", "summary", "ul"
]]

and:

[[
An end tag whose tag name is one of: "address", "article", "aside",  
"blockquote", "button", "center", "details", "dialog", "dir", "div", "dl",  
"fieldset", "figcaption", "figure", "footer", "header", "hgroup",  
"listing", "menu", "nav", "ol", "pre", "section", "summary", "ul"
]]

in  
http://www.whatwg.org/specs/web-apps/current-work/multipage/tree-construction.html#parsing-main-inbody

-- 
Simon Pieters
Opera Software



More information about the whatwg mailing list