- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 14 Sep 2009 06:28:46 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv27907 Modified Files: Overview.html Log Message: Encourage outliners to include implied headings. (whatwg r3831) Index: Overview.html =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.2998 retrieving revision 1.2999 diff -u -d -r1.2998 -r1.2999 --- Overview.html 14 Sep 2009 06:05:23 -0000 1.2998 +++ Overview.html 14 Sep 2009 06:28:43 -0000 1.2999 @@ -12335,6 +12335,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
Received on Monday, 14 September 2009 06:28:56 UTC