[html5] r6493 - [e] (0) examples for <select required> Fixing http://www.w3.org/Bugs/Public/show [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Aug 17 14:51:04 PDT 2011


Author: ianh
Date: 2011-08-17 14:51:02 -0700 (Wed, 17 Aug 2011)
New Revision: 6493

Modified:
   complete.html
   index
   source
Log:
[e] (0) examples for <select required>
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=12694

Modified: complete.html
===================================================================
--- complete.html	2011-08-17 21:36:17 UTC (rev 6492)
+++ complete.html	2011-08-17 21:51:02 UTC (rev 6493)
@@ -49193,6 +49193,18 @@
  </select>
 </p></pre>
 
+   <p>When there is no default option, a placeholder can be used
+   instead:</p>
+
+   <pre><select name="unittype" <strong>required</strong>>
+ <strong><option value=""> Select unit type &lt/option></strong>
+ <option value="1"> Miner </option>
+ <option value="2"> Puffer </option>
+ <option value="3"> Snipey </option>
+ <option value="4"> Max </option>
+ <option value="5"> Firebot </option>
+</select></pre>
+
   </div>
 
   <div class=example>
@@ -49213,8 +49225,30 @@
 
   </div>
 
+  <div class=example>
 
+   <p>Sometimes, a user has to select one or more items. This example
+   shows such an interface.</p>
 
+   <pre><p>Select the songs from that you would like on your Act II Mix Tape:</p>
+<select multiple required name="act2">
+ <option value="s1">It Sucks to Be Me (Reprise)
+ <option value="s2">There is Life Outside Your Apartment
+ <option value="s3">The More You Ruv Someone
+ <option value="s4">Schadenfreude
+ <option value="s5">I Wish I Could Go Back to College
+ <option value="s6">The Money Song
+ <option value="s7">School for Monsters
+ <option value="s8">The Money Song (Reprise)
+ <option value="s9">There's a Fine, Fine Line (Reprise)
+ <option value="s10">What Do You Do With a B.A. in English? (Reprise)
+ <option value="s11">For Now
+</select></pre>
+
+  </div>
+
+
+
   <h4 id=the-datalist-element><span class=secno>4.10.10 </span>The <dfn><code>datalist</code></dfn> element</h4>
 
   <dl class=element><dt>Categories</dt>

Modified: index
===================================================================
--- index	2011-08-17 21:36:17 UTC (rev 6492)
+++ index	2011-08-17 21:51:02 UTC (rev 6493)
@@ -49060,6 +49060,18 @@
  </select>
 </p></pre>
 
+   <p>When there is no default option, a placeholder can be used
+   instead:</p>
+
+   <pre><select name="unittype" <strong>required</strong>>
+ <strong><option value=""> Select unit type &lt/option></strong>
+ <option value="1"> Miner </option>
+ <option value="2"> Puffer </option>
+ <option value="3"> Snipey </option>
+ <option value="4"> Max </option>
+ <option value="5"> Firebot </option>
+</select></pre>
+
   </div>
 
   <div class=example>
@@ -49080,8 +49092,30 @@
 
   </div>
 
+  <div class=example>
 
+   <p>Sometimes, a user has to select one or more items. This example
+   shows such an interface.</p>
 
+   <pre><p>Select the songs from that you would like on your Act II Mix Tape:</p>
+<select multiple required name="act2">
+ <option value="s1">It Sucks to Be Me (Reprise)
+ <option value="s2">There is Life Outside Your Apartment
+ <option value="s3">The More You Ruv Someone
+ <option value="s4">Schadenfreude
+ <option value="s5">I Wish I Could Go Back to College
+ <option value="s6">The Money Song
+ <option value="s7">School for Monsters
+ <option value="s8">The Money Song (Reprise)
+ <option value="s9">There's a Fine, Fine Line (Reprise)
+ <option value="s10">What Do You Do With a B.A. in English? (Reprise)
+ <option value="s11">For Now
+</select></pre>
+
+  </div>
+
+
+
   <h4 id=the-datalist-element><span class=secno>4.10.10 </span>The <dfn><code>datalist</code></dfn> element</h4>
 
   <dl class=element><dt>Categories</dt>

Modified: source
===================================================================
--- source	2011-08-17 21:36:17 UTC (rev 6492)
+++ source	2011-08-17 21:51:02 UTC (rev 6493)
@@ -55092,6 +55092,18 @@
  </select>
 </p></pre>
 
+   <p>When there is no default option, a placeholder can be used
+   instead:</p>
+
+   <pre><select name="unittype" <strong>required</strong>>
+ <strong><option value=""> Select unit type &lt/option></strong>
+ <option value="1"> Miner </option>
+ <option value="2"> Puffer </option>
+ <option value="3"> Snipey </option>
+ <option value="4"> Max </option>
+ <option value="5"> Firebot </option>
+</select></pre>
+
   </div>
 
   <div class="example">
@@ -55112,8 +55124,30 @@
 
   </div>
 
+  <div class="example">
 
+   <p>Sometimes, a user has to select one or more items. This example
+   shows such an interface.</p>
 
+   <pre><p>Select the songs from that you would like on your Act II Mix Tape:</p>
+<select multiple required name="act2">
+ <option value="s1">It Sucks to Be Me (Reprise)
+ <option value="s2">There is Life Outside Your Apartment
+ <option value="s3">The More You Ruv Someone
+ <option value="s4">Schadenfreude
+ <option value="s5">I Wish I Could Go Back to College
+ <option value="s6">The Money Song
+ <option value="s7">School for Monsters
+ <option value="s8">The Money Song (Reprise)
+ <option value="s9">There's a Fine, Fine Line (Reprise)
+ <option value="s10">What Do You Do With a B.A. in English? (Reprise)
+ <option value="s11">For Now
+</select></pre>
+
+  </div>
+
+
+
   <h4>The <dfn><code>datalist</code></dfn> element</h4>
 
   <dl class="element">




More information about the Commit-Watchers mailing list