[whatwg] <h1> to <h6> in <body>

Ian Hickson ian at hixie.ch
Mon Apr 4 07:24:57 PDT 2005


On Mon, 4 Apr 2005, Matthew Raymond wrote:
> 
>    That said, this is how I would process the sample markup:
> 
>     <body>
>      <p>...</p>               <unnamed section>
>      <h1>A</h1>               1        A (importance level 1)

I agree with most of what you said but the problem I have with the above 
is that it means almost every document will have an anonymous section at 
the top, and I don't think that makes sense.

Even in the case of:

   <body>
    <h1>...</h1>

...there's an anonymous section, because you have a whitespace text node 
before the element. That doesn't really work for me.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list