[html5] r8748 - [e] (0) Give an example of why <main> might be used multiple times in a document [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Sep 4 15:55:58 PDT 2014


Author: ianh
Date: 2014-09-04 15:55:54 -0700 (Thu, 04 Sep 2014)
New Revision: 8748

Modified:
   complete.html
   index
   source
Log:
[e] (0) Give an example of why <main> might be used multiple times in a document.
Affected topics: HTML

Modified: complete.html
===================================================================
--- complete.html	2014-09-04 22:46:41 UTC (rev 8747)
+++ complete.html	2014-09-04 22:55:54 UTC (rev 8748)
@@ -13351,11 +13351,16 @@
   <code id=the-main-element:the-article-element><a href=#the-article-element>article</a></code> elements in that the <code id=the-main-element:the-main-element-3><a href=#the-main-element>main</a></code> element does not contribute to the
   document <a href=#outline id=the-main-element:outline>outline</a>.</p>
 
+  <p class=note>There is no restriction as to the number of <code id=the-main-element:the-main-element-4><a href=#the-main-element>main</a></code> elements in a
+  document. Indeed, there are many cases where it would make sense to have multiple
+  <code id=the-main-element:the-main-element-5><a href=#the-main-element>main</a></code> elements. For example, a page with multiple <code id=the-main-element:the-article-element-2><a href=#the-article-element>article</a></code> elements might
+  need to indicate the dominant contents of each such element.</p>
+
   <div class=example>
 
    <p>In this example, the author has used a presentation where each component of the page is
    rendered in a box. To wrap the main content of the page (as opposed to the header, the footer,
-   the navigation bar, and a sidebar), the <code id=the-main-element:the-main-element-4><a href=#the-main-element>main</a></code> element is used.</p>
+   the navigation bar, and a sidebar), the <code id=the-main-element:the-main-element-6><a href=#the-main-element>main</a></code> element is used.</p>
 
    <pre><!DOCTYPE html>
 <title>RPG System 17</title>

Modified: index
===================================================================
--- index	2014-09-04 22:46:41 UTC (rev 8747)
+++ index	2014-09-04 22:55:54 UTC (rev 8748)
@@ -13351,11 +13351,16 @@
   <code id=the-main-element:the-article-element><a href=#the-article-element>article</a></code> elements in that the <code id=the-main-element:the-main-element-3><a href=#the-main-element>main</a></code> element does not contribute to the
   document <a href=#outline id=the-main-element:outline>outline</a>.</p>
 
+  <p class=note>There is no restriction as to the number of <code id=the-main-element:the-main-element-4><a href=#the-main-element>main</a></code> elements in a
+  document. Indeed, there are many cases where it would make sense to have multiple
+  <code id=the-main-element:the-main-element-5><a href=#the-main-element>main</a></code> elements. For example, a page with multiple <code id=the-main-element:the-article-element-2><a href=#the-article-element>article</a></code> elements might
+  need to indicate the dominant contents of each such element.</p>
+
   <div class=example>
 
    <p>In this example, the author has used a presentation where each component of the page is
    rendered in a box. To wrap the main content of the page (as opposed to the header, the footer,
-   the navigation bar, and a sidebar), the <code id=the-main-element:the-main-element-4><a href=#the-main-element>main</a></code> element is used.</p>
+   the navigation bar, and a sidebar), the <code id=the-main-element:the-main-element-6><a href=#the-main-element>main</a></code> element is used.</p>
 
    <pre><!DOCTYPE html>
 <title>RPG System 17</title>

Modified: source
===================================================================
--- source	2014-09-04 22:46:41 UTC (rev 8747)
+++ source	2014-09-04 22:55:54 UTC (rev 8748)
@@ -18647,6 +18647,11 @@
   <code>article</code> elements in that the <code>main</code> element does not contribute to the
   document <span>outline</span>.</p>
 
+  <p class="note">There is no restriction as to the number of <code>main</code> elements in a
+  document. Indeed, there are many cases where it would make sense to have multiple
+  <code>main</code> elements. For example, a page with multiple <code>article</code> elements might
+  need to indicate the dominant contents of each such element.</p>
+
   <div class="example">
 
    <p>In this example, the author has used a presentation where each component of the page is



More information about the Commit-Watchers mailing list