Skip to content

Commit

Permalink
[ac] (0) Let's try that again. Distinguishing site-wide headers from …
Browse files Browse the repository at this point in the history
…page headers:

git-svn-id: http://svn.whatwg.org/webapps@827 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 17, 2007
1 parent c85fe6c commit e9017f7
Showing 1 changed file with 28 additions and 25 deletions.
53 changes: 28 additions & 25 deletions source
Expand Up @@ -7344,32 +7344,35 @@ XXX attributes to give the date authored, date published

<h5>Distinguishing site-wide headers from page headers</h5>

<p>Given the <a href="#outlines">hypothetical section tree</a>, but
ignoring any sections created for <code>nav</code> and
<code>aside</code> elements, and any of their descendants, if the
root of the tree is <span>the <code>body</code> element</span>'s
section, and it has only a single subsection which is created by an
<code>article</code> element, then the header of <span>the
<code>body</code> element</span> should be assumed to be a site-wide
header, and the header of the <code>article</code> element should be
assumed to be the page's header.</p>

<p>If a page starts with a heading that is common to the whole site,
that header must be given as the document's top-level heading, and
the page's own heading must be nested as the heading of an
<code>article</code> element, that element being the only
<code>article</code> or <code>section</code> element descendant of
<span>the <code>body</code> element</span>, ignoring any further
descendants of the <code>article</code> element itself.</p>

<p>If a page does not contain a site-wide heading, then either its
<span title="the body element"><code>body</code> element</span> must
not have an <code>article</code> element that is the only
<code>article</code> or <code>section</code> element descendant,
ignoring any descendants of any <code>article</code> elements, of
<span>the <code>body</code> element</span>, or, <span>the
<code>body</code> element</span> itself must not have a heading
associated with it.</p>

<p>If a document's <span title="the body element"><code>body</code>
element</span> has only one <code>article</code> or
<code>section</code> element descendant, ignoring any descendants of
any <code>article</code> elements, and that element is an
<code>article</code> element, then the page's heading is the heading
of that element and the site's heading is the heading of the
<code>body</code> element. Otherwise, there is no site heading, and
the page heading is the heading of the <code>body</code>
element.</p>
the document must be authored such that, in the document's <a
href="#outlines">hypothetical section tree</a>, ignoring any
sections created for <code>nav</code> and <code>aside</code>
elements and any of their descendants, the root of the tree is
<span>the <code>body</code> element</span>'s section, its heading is
the site-wide heading, <span>the <code>body</code> element</span>
has just one subsection, that subsection is created by an
<code>article</code> element, and that <code>article</code>'s header
is the page heading.</p>

<p>If a page does not contain a site-wide heading, then the page
must be authored such that, in the document's <a
href="#outlines">hypothetical section tree</a>, ignoring any
sections created for <code>nav</code> and <code>aside</code>
elements and any of their descendants, either <span>the
<code>body</code> element</span> has no subsections, or it has more
than one subsection, or it has a single subsection but that
subsection is not created by an <code>article</code> element.</p>

<p class="note">Conceptually, a site is thus a document with many
articles &mdash; when those articles are split into many pages, the
Expand Down

0 comments on commit e9017f7

Please sign in to comment.