[html5] r3831 - [t] (0) Encourage outliners to include implied headings.
whatwg at whatwg.org
whatwg at whatwg.org
Sun Sep 13 23:33:59 PDT 2009
Author: ianh
Date: 2009-09-13 23:33:59 -0700 (Sun, 13 Sep 2009)
New Revision: 3831
Modified:
index
source
Log:
[t] (0) Encourage outliners to include implied headings.
Modified: index
===================================================================
--- index 2009-09-14 06:10:38 UTC (rev 3830)
+++ index 2009-09-14 06:33:59 UTC (rev 3831)
@@ -13953,6 +13953,39 @@
not associated with a <a href=#concept-section title=concept-section>section</a>
is 1.</p>
+ <p>User agents should provide default headings for sections that do
+ not have explicit section headings.</p>
+
+ <div class=example>
+
+ <p>Consider the following snippet:</p>
+
+ <pre><body>
+ <nav>
+ <p><a href="/">Home</a></p>
+ </nav>
+ <p>Hello world.</p>
+ <aside>
+ <p>My cat is cute.</p>
+ </aside>
+</body></pre>
+
+ <p>Although it contains no headings, this snippet has three
+ sections: a document (the <code><a href=#the-body-element-0>body</a></code>) with two subsections
+ (a <code><a href=#the-nav-element>nav</a></code> and an <code><a href=#the-aside-element>aside</a></code>). A user agent could
+ present the outline as follows:</p>
+
+ <ol class=brief><li>Untitled document
+ <ol><li>Navigation</li>
+ <li>Sidebar</li>
+ </ol></li>
+ </ol><p>These default headings ("Untitled document", "Navigation",
+ "Sidebar") are not specified by this specification, and might vary
+ with the user's language, the page's language, the user's
+ preferences, the user agent implementor's preferences, etc.</p>
+
+ </div>
+
<div class=note>
<p>The following JavaScript function shows how the tree walk could
Modified: source
===================================================================
--- source 2009-09-14 06:10:38 UTC (rev 3830)
+++ source 2009-09-14 06:33:59 UTC (rev 3831)
@@ -14852,6 +14852,44 @@
not associated with a <span title="concept-section">section</span>
is 1.</p>
+ <p>User agents should provide default headings for sections that do
+ not have explicit section headings.</p>
+
+ <div class="example">
+
+ <p>Consider the following snippet:</p>
+
+ <pre><body>
+ <nav>
+ <p><a href="/">Home</a></p>
+ </nav>
+ <p>Hello world.</p>
+ <aside>
+ <p>My cat is cute.</p>
+ </aside>
+</body></pre>
+
+ <p>Although it contains no headings, this snippet has three
+ sections: a document (the <code>body</code>) with two subsections
+ (a <code>nav</code> and an <code>aside</code>). A user agent could
+ present the outline as follows:</p>
+
+ <ol class="brief">
+ <li>Untitled document
+ <ol>
+ <li>Navigation</li>
+ <li>Sidebar</li>
+ </ol>
+ </li>
+ </ol>
+
+ <p>These default headings ("Untitled document", "Navigation",
+ "Sidebar") are not specified by this specification, and might vary
+ with the user's language, the page's language, the user's
+ preferences, the user agent implementor's preferences, etc.</p>
+
+ </div>
+
<div class="note">
<p>The following JavaScript function shows how the tree walk could
More information about the Commit-Watchers
mailing list