[html5] r6405 - [e] (0) Add a more conventional example for <fieldset>. Fixing http://www.w3.org [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Aug 9 18:47:22 PDT 2011


Author: ianh
Date: 2011-08-09 18:47:21 -0700 (Tue, 09 Aug 2011)
New Revision: 6405

Modified:
   complete.html
   index
   source
Log:
[e] (0) Add a more conventional example for <fieldset>.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=13543

Modified: complete.html
===================================================================
--- complete.html	2011-08-10 01:26:44 UTC (rev 6404)
+++ complete.html	2011-08-10 01:47:21 UTC (rev 6405)
@@ -42102,6 +42102,25 @@
 
   <div class=example>
 
+   <p>This example shows a <code><a href=#the-fieldset-element>fieldset</a></code> element being used to
+   group a set of related controls:</p>
+
+   <pre><fieldset>
+ <legend>Display</legend>
+ <p><label><input type=radio name=c value=0 checked> Black on White</label>
+ <p><label><input type=radio name=c value=1> White on Black</label>
+ <p><label><input type=checkbox name=g> Use grayscale</label>
+ <p><label>Enhance contrast <input type=range name=e list=contrast min=0 max=100 value=0 step=1></label>
+ <datalist id=contrast>
+  <option label=Normal value=0>
+  <option label=Maximum value=100>
+ </datalist>
+</fieldset></pre>
+
+  </div>
+
+  <div class=example>
+
    <p>The following snippet shows a fieldset with a checkbox in the
    legend that controls whether or not the fieldset is enabled. The
    contents of the fieldset consist of two required text fields and an

Modified: index
===================================================================
--- index	2011-08-10 01:26:44 UTC (rev 6404)
+++ index	2011-08-10 01:47:21 UTC (rev 6405)
@@ -41969,6 +41969,25 @@
 
   <div class=example>
 
+   <p>This example shows a <code><a href=#the-fieldset-element>fieldset</a></code> element being used to
+   group a set of related controls:</p>
+
+   <pre><fieldset>
+ <legend>Display</legend>
+ <p><label><input type=radio name=c value=0 checked> Black on White</label>
+ <p><label><input type=radio name=c value=1> White on Black</label>
+ <p><label><input type=checkbox name=g> Use grayscale</label>
+ <p><label>Enhance contrast <input type=range name=e list=contrast min=0 max=100 value=0 step=1></label>
+ <datalist id=contrast>
+  <option label=Normal value=0>
+  <option label=Maximum value=100>
+ </datalist>
+</fieldset></pre>
+
+  </div>
+
+  <div class=example>
+
    <p>The following snippet shows a fieldset with a checkbox in the
    legend that controls whether or not the fieldset is enabled. The
    contents of the fieldset consist of two required text fields and an

Modified: source
===================================================================
--- source	2011-08-10 01:26:44 UTC (rev 6404)
+++ source	2011-08-10 01:47:21 UTC (rev 6405)
@@ -46940,6 +46940,25 @@
 
   <div class="example">
 
+   <p>This example shows a <code>fieldset</code> element being used to
+   group a set of related controls:</p>
+
+   <pre><fieldset>
+ <legend>Display</legend>
+ <p><label><input type=radio name=c value=0 checked> Black on White</label>
+ <p><label><input type=radio name=c value=1> White on Black</label>
+ <p><label><input type=checkbox name=g> Use grayscale</label>
+ <p><label>Enhance contrast <input type=range name=e list=contrast min=0 max=100 value=0 step=1></label>
+ <datalist id=contrast>
+  <option label=Normal value=0>
+  <option label=Maximum value=100>
+ </datalist>
+</fieldset></pre>
+
+  </div>
+
+  <div class="example">
+
    <p>The following snippet shows a fieldset with a checkbox in the
    legend that controls whether or not the fieldset is enabled. The
    contents of the fieldset consist of two required text fields and an




More information about the Commit-Watchers mailing list