hixie: Try to clarify <footer>. (whatwg r3954)

hixie: Try to clarify <footer>. (whatwg r3954)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3115&r2=1.3116&f=h
http://html5.org/tools/web-apps-tracker?from=3953&to=3954

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.3115
retrieving revision 1.3116
diff -u -d -r1.3115 -r1.3116
--- Overview.html 22 Sep 2009 01:19:25 -0000 1.3115
+++ Overview.html 22 Sep 2009 01:38:28 -0000 1.3116
@@ -12037,17 +12037,20 @@
    <dt>DOM interface:</dt>
    <dd>Uses <code><a href="#htmlelement">HTMLElement</a></code>.</dd>
   </dl><p>The <code><a href="#the-footer-element">footer</a></code> element <a href="#represents">represents</a> a footer
-  for its nearest ancestor <a href="#sectioning-content">sectioning content</a>. A footer
-  typically contains information about its section such as who wrote
-  it, links to related documents, copyright data, and the like.<p class="note">Contact information belongs in an
+  for its nearest ancestor <a href="#sectioning-content">sectioning content</a> or
+  <a href="#sectioning-root">sectioning root</a> element. A footer typically contains
+  information about its section such as who wrote it, links to related
+  documents, copyright data, and the like.<p class="note">Contact information belongs in an
   <code><a href="#the-address-element">address</a></code> element, possibly itself inside a
-  <code><a href="#the-footer-element">footer</a></code>.<p>Footers don't necessarily have to appear at the end of a section,
+  <code><a href="#the-footer-element">footer</a></code>.<p>Footers don't necessarily have to appear at the <em>end</em> of a section,
   though they usually do.<p>When the <code><a href="#the-footer-element">footer</a></code> element contains entire sections,
   they <a href="#represents" title="represents">represent</a> appendices, indexes,
   long colophons, verbose license agreements, and other such
   content.<p class="note">The <code><a href="#the-footer-element">footer</a></code> element is not
   <a href="#sectioning-content">sectioning content</a>; it doesn't introduce a new
-  section.<div class="example">
+  section.<p>When the nearest ancestor <a href="#sectioning-content">sectioning content</a> or
+  <a href="#sectioning-root">sectioning root</a> element is <a href="#the-body-element">the body
+  element</a>, then it applies to the whole page.<div class="example">
 
    <p>Here is a page with two footers, one at the top and one at the
    bottom, with the same content:</p>
@@ -12068,6 +12071,46 @@
  &lt;footer&gt;&lt;a href="../"&gt;Back to index...&lt;/a&gt;&lt;/footer&gt;
 &lt;/body&gt;</pre>
 
+  </div><div class="example">
+
+   <p>Here is an example which shows the <code><a href="#the-footer-element">footer</a></code> element
+   being used both for a site-wide footer and for a section
+   footer.</p>
+
+   <pre>&lt;!DOCTYPE HTML&gt;
+&lt;HTML&gt;&lt;HEAD&gt;
+&lt;TITLE&gt;The Ramblings of a Scientist&lt;/TITLE&gt;
+&lt;BODY&gt;
+&lt;H1&gt;The Ramblings of a Scientist&lt;/H1&gt;
+&lt;ARTICLE&gt;
+ &lt;H1&gt;Episode 15&lt;/H1&gt;
+ &lt;VIDEO SRC="/fm/015.ogv" CONTROLS AUTOBUFFER&gt;
+  &lt;P&gt;&lt;A HREF="/fm/015.ogv"&gt;Download video&lt;/A&gt;.&lt;/P&gt;
+ &lt;/VIDEO&gt;
+ &lt;FOOTER&gt; &lt;!-- footer for article --&gt;
+  &lt;P&gt;Published &lt;TIME PUBDATE DATETIME="2009-10-21T18:26-07:00"&gt;&lt;/TIME&gt;&lt;/P&gt;
+ &lt;/FOOTER&gt;
+&lt;/ARTICLE&gt;
+&lt;ARTICLE&gt;
+ &lt;H1&gt;My Favorite Trains&lt;/H1&gt;
+ &lt;P&gt;I love my trains. My favorite train of all time is a K&ouml;f.&lt;/P&gt;
+ &lt;P&gt;It is fun to see them pull some coal cars because they look so
+ dwarfed in comparison.&lt;/P&gt;
+ &lt;FOOTER&gt; &lt;!-- footer for article --&gt;
+  &lt;P&gt;Published &lt;TIME PUBDATE DATETIME="2009-09-15T14:54-07:00"&gt;&lt;/TIME&gt;&lt;/P&gt;
+ &lt;/FOOTER&gt;
+&lt;/ARTICLE&gt;
+&lt;FOOTER&gt; &lt;!-- site wide footer --&gt;
+ &lt;NAV&gt;
+  &lt;P&gt;&lt;A HREF="/credits.html"&gt;Credits&lt;/A&gt; &mdash;
+     &lt;A HREF="/tos.html"&gt;Terms of Service&lt;/A&gt; &mdash;
+     &lt;A HREF="/index.html"&gt;Blog Index&lt;/A&gt;&lt;/P&gt;
+ &lt;/NAV&gt;
+ &lt;P&gt;Copyright &copy; 2009 Gordon Freeman&lt;/P&gt;
+&lt;/FOOTER&gt;
+&lt;/BODY&gt;
+&lt;/HTML&gt;</pre>
+
   </div><h4 id="the-address-element"><span class="secno">4.4.10 </span>The <dfn><code>address</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>Implemented and widely deployed</i><dl class="element"><dt>Categories</dt>
    <dd><a href="#flow-content">Flow content</a>.</dd>
    <dd><a href="#formatblock-candidate"><code title="">formatBlock</code> candidate</a>.</dd>

Received on Tuesday, 22 September 2009 01:39:31 UTC