use <label> in the <br> anti-example (whatwg r3269)

use <label> in the <br> anti-example (whatwg r3269)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2416&r2=1.2417&f=h
http://html5.org/tools/web-apps-tracker?from=3268&to=3269

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2416
retrieving revision 1.2417
diff -u -d -r1.2416 -r1.2417
--- Overview.html 16 Jun 2009 00:53:59 -0000 1.2416
+++ Overview.html 16 Jun 2009 00:56:10 -0000 1.2417
@@ -11151,18 +11151,16 @@
    <pre>&lt;p&gt;&lt;a ...&gt;34 comments.&lt;/a&gt;&lt;br&gt;
 &lt;a ...&gt;Add a comment.&lt;a&gt;&lt;/p&gt;</pre>
 
-   <pre>&lt;p&gt;Name: &lt;input name="name"&gt;&lt;br&gt;
-Address: &lt;input name="address"&gt;&lt;/p&gt;</pre>
+   <pre>&lt;p&gt;&lt;label&gt;Name: &lt;input name="name"&gt;&lt;/label&gt;&lt;br&gt;
+&lt;label&gt;Address: &lt;input name="address"&gt;&lt;/label&gt;&lt;/p&gt;</pre>
 
    <p>Here are alternatives to the above, which are correct:</p>
 
    <pre>&lt;p&gt;&lt;a ...&gt;34 comments.&lt;/a&gt;&lt;/p&gt;
 &lt;p&gt;&lt;a ...&gt;Add a comment.&lt;a&gt;&lt;/p&gt;</pre>
 
-   <pre>&lt;p&gt;Name: &lt;input name="name"&gt;&lt;/p&gt;
-&lt;p&gt;Address: &lt;input name="address"&gt;&lt;/p&gt;</pre>
-
-   <!-- XXX should have labels in the examples above -->
+   <pre>&lt;p&gt;&lt;label&gt;Name: &lt;input name="name"&gt;&lt;/label&gt;&lt;/p&gt;
+&lt;p&gt;&lt;label&gt;Address: &lt;input name="address"&gt;&lt;/label&gt;&lt;/p&gt;</pre>
 
   </div><p>If a <a href="#paragraph">paragraph</a> consists of nothing but a single
   <code><a href="#the-br-element">br</a></code> element, it represents a placeholder blank line

Received on Tuesday, 16 June 2009 00:56:58 UTC