Skip to content

Commit

Permalink
[ac] (0) Define how to distinguish site-wide headers from page headers
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@826 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 17, 2007
1 parent 0312cbd commit c85fe6c
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 0 deletions.
43 changes: 43 additions & 0 deletions index
Expand Up @@ -435,6 +435,9 @@
<li><a href="#associatedSection"><span class=secno>3.8.11.2.
</span>Determining which heading and section applies to a
particular node</a>

<li><a href="#distinguishing"><span class=secno>3.8.11.3.
</span>Distinguishing site-wide headers from page headers</a>
</ul>
</ul>

Expand Down Expand Up @@ -8873,6 +8876,46 @@ XXX attributes to give the date authored, date published
</table>
</div>

<h5 id=distinguishing><span class=secno>3.8.11.3. </span>Distinguishing
site-wide headers from page headers</h5>

<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><a
href="#article">article</a></code> element, that element being the only
<code><a href="#article">article</a></code> or <code><a
href="#section">section</a></code> element descendant of <a
href="#the-body0">the <code>body</code> element</a>, ignoring any further
descendants of the <code><a href="#article">article</a></code> element
itself.

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

<p>If a document's <a href="#the-body0" title="the body
element"><code>body</code> element</a> has only one <code><a
href="#article">article</a></code> or <code><a
href="#section">section</a></code> element descendant, ignoring any
descendants of any <code><a href="#article">article</a></code> elements,
and that element is an <code><a href="#article">article</a></code>
element, then the page's heading is the heading of that element and the
site's heading is the heading of the <code><a
href="#body0">body</a></code> element. Otherwise, there is no site
heading, and the page heading is the heading of the <code><a
href="#body0">body</a></code> element.

<p class=note>Conceptually, a site is thus a document with many articles
&mdash; when those articles are split into many pages, the heading of the
original single page becomes the heading of the site, repeated on every
page.

<h3 id=prose><span class=secno>3.9. </span>Prose</h3>

<h4 id=the-p><span class=secno>3.9.1. </span>The <dfn
Expand Down
34 changes: 34 additions & 0 deletions source
Expand Up @@ -7342,6 +7342,40 @@ XXX attributes to give the date authored, date published
</div>


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

<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>

<p class="note">Conceptually, a site is thus a document with many
articles &mdash; when those articles are split into many pages, the
heading of the original single page becomes the heading of the site,
repeated on every page.</p>



<h3>Prose</h3>
Expand Down

0 comments on commit c85fe6c

Please sign in to comment.