W3C home > Mailing lists > Public > public-html-diffs@w3.org > September 2010

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

From: poot <cvsmail@w3.org>
Date: Sat, 25 Sep 2010 10:57:25 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20100925015725.861FE2BC00@toro.w3.mag.keio.ac.jp>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:09:10 UTC