[html5] r1966 - [t] (0) Clarify what <header> means for document summaries and ToCs, and define [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Jul 30 18:15:44 PDT 2008


Author: ianh
Date: 2008-07-30 18:15:43 -0700 (Wed, 30 Jul 2008)
New Revision: 1966

Modified:
   index
   source
Log:
[t] (0) Clarify what <header> means for document summaries and ToCs, and define what to do in case of missing <hx> elements.

Modified: index
===================================================================
--- index	2008-07-30 22:27:34 UTC (rev 1965)
+++ index	2008-07-31 01:15:43 UTC (rev 1966)
@@ -24,7 +24,7 @@
 
    <h1 id=html-5>HTML 5</h1>
 
-   <h2 class="no-num no-toc" id=draft>Draft Recommendation — 30 July
+   <h2 class="no-num no-toc" id=draft>Draft Recommendation — 31 July
     2008</h2>
 
    <p>You can take part in this work. <a
@@ -10828,13 +10828,15 @@
    just the section's headings and subheadings — for example it would
    be reasonable for the header to include version history information.
 
-  <p>For the purposes of document summaries, outlines, and the like, <code><a
-   href="#header">header</a></code> elements are equivalent to the highest <a
-   href="#rank" title=rank>ranked</a> <code><a
+  <p>For the purposes of document summaries, outlines, and the like, the text
+   of <code><a href="#header">header</a></code> elements is defined to be the
+   text of the highest <a href="#rank" title=rank>ranked</a> <code><a
    href="#h1">h1</a></code>–<code><a href="#h6">h6</a></code> element
-   descendant of the <code><a href="#header">header</a></code> element (the
-   first such element if there are multiple elements with that <a
-   href="#rank">rank</a>).
+   descendant of the <code><a href="#header">header</a></code> element, if
+   there are any such elements, and the first such element if there are
+   multiple elements with that <a href="#rank">rank</a>. If there are no such
+   elements, then the text of the <code><a href="#header">header</a></code>
+   element is the empty string.
 
   <p>Other heading elements in the <code><a href="#header">header</a></code>
    element indicate subheadings or subtitles.

Modified: source
===================================================================
--- source	2008-07-30 22:27:34 UTC (rev 1965)
+++ source	2008-07-31 01:15:43 UTC (rev 1966)
@@ -8747,11 +8747,13 @@
   version history information.
 
   <p>For the purposes of document summaries, outlines, and the like,
-  <code>header</code> elements are equivalent to the highest <span
-  title="rank">ranked</span> <code>h1</code>–<code>h6</code> element
-  descendant of the <code>header</code> element (the first such
-  element if there are multiple elements with that
-  <span>rank</span>).</p>
+  the text of <code>header</code> elements is defined to be the text
+  of the highest <span title="rank">ranked</span>
+  <code>h1</code>–<code>h6</code> element descendant of the
+  <code>header</code> element, if there are any such elements, and the
+  first such element if there are multiple elements with that
+  <span>rank</span>. If there are no such elements, then the text of
+  the <code>header</code> element is the empty string.</p>
 
   <p>Other heading elements in the <code>header</code> element
   indicate subheadings or subtitles.</p>




More information about the Commit-Watchers mailing list