Skip to content

Commit

Permalink
[e] (0) tweak an example to use footer instead of header
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8959

git-svn-id: http://svn.whatwg.org/webapps@4765 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 17, 2010
1 parent 64e273b commit db7bc3a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 12 deletions.
15 changes: 11 additions & 4 deletions complete.html
Expand Up @@ -13906,22 +13906,29 @@ <h4 id=the-article-element><span class=secno>4.4.4 </span>The <dfn><code>article
&lt;section&gt;
&lt;h1&gt;Comments&lt;/h1&gt;
&lt;article&gt;
&lt;header&gt;
&lt;footer&gt;
&lt;p&gt;Posted by: George Washington&lt;/p&gt;
&lt;p&gt;&lt;time pubdate datetime="2009-10-10T19:10-08:00"&gt;&lt;/time&gt;&lt;/p&gt;
&lt;/header&gt;
&lt;/footer&gt;
&lt;p&gt;Yeah! Especially when talking about your lobbyist friends!&lt;/p&gt;
&lt;/article&gt;
&lt;article&gt;
&lt;header&gt;
&lt;footer&gt;
&lt;p&gt;Posted by: George Hammond&lt;/p&gt;
&lt;p&gt;&lt;time pubdate datetime="2009-10-10T19:15-08:00"&gt;&lt;/time&gt;&lt;/p&gt;
&lt;/header&gt;
&lt;/footer&gt;
&lt;p&gt;Hey, you have the same first name as me.&lt;/p&gt;
&lt;/article&gt;
&lt;/section&gt;
&lt;/article&gt;</pre>

<p>Notice the use of <code><a href=#the-footer-element>footer</a></code> to give the information
each comment (such as who wrote it and when): the
<code><a href=#the-footer-element>footer</a></code> element <em>can</em> appear at the start of its
section when appropriate, such as in this case. (Using
<code><a href=#the-header-element>header</a></code> in this case wouldn't be wrong either; it's
mostly a matter of authoring preference.)</p>

</div>


Expand Down
15 changes: 11 additions & 4 deletions index
Expand Up @@ -13805,22 +13805,29 @@ not-slash = %x0000-002E / %x0030-10FFFF
&lt;section&gt;
&lt;h1&gt;Comments&lt;/h1&gt;
&lt;article&gt;
&lt;header&gt;
&lt;footer&gt;
&lt;p&gt;Posted by: George Washington&lt;/p&gt;
&lt;p&gt;&lt;time pubdate datetime="2009-10-10T19:10-08:00"&gt;&lt;/time&gt;&lt;/p&gt;
&lt;/header&gt;
&lt;/footer&gt;
&lt;p&gt;Yeah! Especially when talking about your lobbyist friends!&lt;/p&gt;
&lt;/article&gt;
&lt;article&gt;
&lt;header&gt;
&lt;footer&gt;
&lt;p&gt;Posted by: George Hammond&lt;/p&gt;
&lt;p&gt;&lt;time pubdate datetime="2009-10-10T19:15-08:00"&gt;&lt;/time&gt;&lt;/p&gt;
&lt;/header&gt;
&lt;/footer&gt;
&lt;p&gt;Hey, you have the same first name as me.&lt;/p&gt;
&lt;/article&gt;
&lt;/section&gt;
&lt;/article&gt;</pre>

<p>Notice the use of <code><a href=#the-footer-element>footer</a></code> to give the information
each comment (such as who wrote it and when): the
<code><a href=#the-footer-element>footer</a></code> element <em>can</em> appear at the start of its
section when appropriate, such as in this case. (Using
<code><a href=#the-header-element>header</a></code> in this case wouldn't be wrong either; it's
mostly a matter of authoring preference.)</p>

</div>


Expand Down
15 changes: 11 additions & 4 deletions source
Expand Up @@ -14650,22 +14650,29 @@ not-slash = %x0000-002E / %x0030-10FFFF
&lt;section>
&lt;h1>Comments&lt;/h1>
&lt;article>
&lt;header>
&lt;footer>
&lt;p>Posted by: George Washington&lt;/p>
&lt;p>&lt;time pubdate datetime="2009-10-10T19:10-08:00">&lt;/time>&lt;/p>
&lt;/header>
&lt;/footer>
&lt;p>Yeah! Especially when talking about your lobbyist friends!&lt;/p>
&lt;/article>
&lt;article>
&lt;header>
&lt;footer>
&lt;p>Posted by: George Hammond&lt;/p>
&lt;p>&lt;time pubdate datetime="2009-10-10T19:15-08:00">&lt;/time>&lt;/p>
&lt;/header>
&lt;/footer>
&lt;p>Hey, you have the same first name as me.&lt;/p>
&lt;/article>
&lt;/section>
&lt;/article></pre>

<p>Notice the use of <code>footer</code> to give the information
each comment (such as who wrote it and when): the
<code>footer</code> element <em>can</em> appear at the start of its
section when appropriate, such as in this case. (Using
<code>header</code> in this case wouldn't be wrong either; it's
mostly a matter of authoring preference.)</p>

</div>


Expand Down

0 comments on commit db7bc3a

Please sign in to comment.