hixie: Show best practice for use of labels in details. (whatwg r5483)

hixie: Show best practice for use of labels in details. (whatwg r5483)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4374&r2=1.4375&f=h
http://html5.org/tools/web-apps-tracker?from=5482&to=5483

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4374
retrieving revision 1.4375
diff -u -d -r1.4374 -r1.4375
--- Overview.html 25 Sep 2010 01:50:06 -0000 1.4374
+++ Overview.html 25 Sep 2010 01:57:10 -0000 1.4375
@@ -35949,8 +35949,8 @@
    used to hide some controls by default:</p>
 
    <pre>&lt;details&gt;
- &lt;summary&gt;Name &amp; Extension:&lt;/summary&gt;
- &lt;p&gt;&lt;input type=text name=fn value="Pillar Magazine.pdf"&gt;
+ &lt;summary&gt;&lt;label for=fn&gt;Name &amp; Extension:&lt;/label&gt;&lt;/summary&gt;
+ &lt;p&gt;&lt;input type=text id=fn name=fn value="Pillar Magazine.pdf"&gt;
  &lt;p&gt;&lt;label&gt;&lt;input type=checkbox name=ext checked&gt; Hide extension&lt;/label&gt;
 &lt;/details&gt;</pre>

Received on Saturday, 25 September 2010 01:57:54 UTC