html5/spec Overview.html,1.5194,1.5195

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv27948

Modified Files:
	Overview.html 
Log Message:
examples for <select required> (whatwg r6493)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5194
retrieving revision 1.5195
diff -u -d -r1.5194 -r1.5195
--- Overview.html	17 Aug 2011 21:36:51 -0000	1.5194
+++ Overview.html	17 Aug 2011 21:51:35 -0000	1.5195
@@ -37173,6 +37173,18 @@
  &lt;/select&gt;
 &lt;/p&gt;</pre>
 
+   <p>When there is no default option, a placeholder can be used
+   instead:</p>
+
+   <pre>&lt;select name="unittype" <strong>required</strong>&gt;
+ <strong>&lt;option value=""&gt; Select unit type &amp;lt/option&gt;</strong>
+ &lt;option value="1"&gt; Miner &lt;/option&gt;
+ &lt;option value="2"&gt; Puffer &lt;/option&gt;
+ &lt;option value="3"&gt; Snipey &lt;/option&gt;
+ &lt;option value="4"&gt; Max &lt;/option&gt;
+ &lt;option value="5"&gt; Firebot &lt;/option&gt;
+&lt;/select&gt;</pre>
+
   </div><div class="example">
 
    <p>Here, the user is offered a set of options from which he can
@@ -37189,6 +37201,26 @@
  &lt;/select&gt;
 &lt;/p&gt;</pre>
 
+  </div><div class="example">
+
+   <p>Sometimes, a user has to select one or more items. This example
+   shows such an interface.</p>
+
+   <pre>&lt;p&gt;Select the songs from that you would like on your Act II Mix Tape:&lt;/p&gt;
+&lt;select multiple required name="act2"&gt;
+ &lt;option value="s1"&gt;It Sucks to Be Me (Reprise)
+ &lt;option value="s2"&gt;There is Life Outside Your Apartment
+ &lt;option value="s3"&gt;The More You Ruv Someone
+ &lt;option value="s4"&gt;Schadenfreude
+ &lt;option value="s5"&gt;I Wish I Could Go Back to College
+ &lt;option value="s6"&gt;The Money Song
+ &lt;option value="s7"&gt;School for Monsters
+ &lt;option value="s8"&gt;The Money Song (Reprise)
+ &lt;option value="s9"&gt;There's a Fine, Fine Line (Reprise)
+ &lt;option value="s10"&gt;What Do You Do With a B.A. in English? (Reprise)
+ &lt;option value="s11"&gt;For Now
+&lt;/select&gt;</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>
    <dd><a href="#flow-content">Flow content</a>.</dd>
    <dd><a href="#phrasing-content">Phrasing content</a>.</dd>

Received on Wednesday, 17 August 2011 21:51:41 UTC