W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2009

[whatwg] article/section/details naming/definition problems

From: Jeremy Keith <jeremy@adactio.com>
Date: Wed, 16 Sep 2009 16:28:27 +0100
Message-ID: <F0492C02-F098-4668-973C-D91224FD6B0E@adactio.com>
Lars asked:
>> All <article>s are <section>s but not all <section>s are <article>s
>
> Just to be clear: Does that include the rules for headers when  
> articles are nested, or when an article is contained in a section?

Yes, the content model is identical. They are both sectioning content.

> E.g. would this structure be treated as an identical flow from a  
> headings level perspective if all article tags where replaced with  
> section tags? I.e. Would it be as if I'd use h1, h2 and h3 today?
>
> <section>
>  <h1 />
>  <article>
>    <h1 />
>      ...
>    <article>
>      <h1 />
>    </article>
>  </article>
> </section>

Yes. From an outline point of view, this is identical:

<section>
  <h1 />
  <section>
    <h1 />
      ...
    <section>
      <h1 />
    </section>
  </section>
</section>

As is this:

<article>
  <h1 />
  <article>
    <h1 />
      ...
    <article>
      <h1 />
    </article>
  </article>
</article>

-- 
Jeremy Keith

a d a c t i o

http://adactio.com/
Received on Wednesday, 16 September 2009 08:28:27 UTC

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