hixie: step/min/max examples. (whatwg r3820)

hixie: step/min/max examples. (whatwg r3820)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2988&r2=1.2989&f=h
http://html5.org/tools/web-apps-tracker?from=3819&to=3820

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2988
retrieving revision 1.2989
diff -u -d -r1.2988 -r1.2989
--- Overview.html 13 Sep 2009 07:35:03 -0000 1.2988
+++ Overview.html 13 Sep 2009 07:45:24 -0000 1.2989
@@ -31131,6 +31131,20 @@
   <a href="#suffering-from-an-underflow">suffering from an underflow</a> or <a href="#suffering-from-an-overflow">suffering from an
   overflow</a>.</p>
 
+  </div><div class="example">
+
+   <p>The following date control limits input to dates that are before
+   the start of the 21st century:</p>
+
+   <pre>&lt;input name=bday type=date max="2000-12-31"&gt;</pre>
+
+  </div><div class="example">
+
+   <p>The following number control limits input to whole numbers
+   greater than zero:</p>
+
+   <pre>&lt;input name=quantity required type=number min=1 value=1&gt;</pre>
+
   </div><h6 id="the-step-attribute"><span class="secno">4.10.4.2.10 </span>The <code title="attr-input-step"><a href="#attr-input-step">step</a></code> attribute</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i><p>The <dfn id="attr-input-step" title="attr-input-step"><code>step</code></dfn>
   attribute indicates the granularity that is expected (and required)
   of the <a href="#concept-fe-value" title="concept-fe-value">value</a>, by limiting the
@@ -31183,6 +31197,24 @@
   base</a> is not an integral multiple of the <a href="#concept-input-step" title="concept-input-step">allowed value step</a>, the element is
   <a href="#suffering-from-a-step-mismatch">suffering from a step mismatch</a>.</p>
 
+  </div><div class="example">
+
+   <p>The following range control only accepts values in the range
+   0..1, and allows 256 steps in that range:</p>
+
+   <pre>&lt;input name=opacity type=range min=0 max=1 step=0.00392156863&gt;</pre>
+
+  </div><div class="example">
+
+   <p>The following control allows any time in the day to be selected,
+   with any accuracy (e.g. thousandth-of-a-second accuracy or
+   more):</p>
+
+   <pre>&lt;input name=favtime type=time step=any&gt;</pre>
+
+   <p>Normally, time controls are limited to an accuracy of one
+   minute.</p>
+
   </div><h6 id="the-placeholder-attribute"><span class="secno">4.10.4.2.11 </span>The <code title="attr-input-placeholder"><a href="#attr-input-placeholder">placeholder</a></code> attribute</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><!-- similar text in the <textarea> section --><p>The <dfn id="attr-input-placeholder" title="attr-input-placeholder"><code>placeholder</code></dfn>
   attribute represents a <em>short</em> hint (a word or short phrase)
   intended to aid the user with data entry. A hint could be a sample

Received on Sunday, 13 September 2009 07:46:19 UTC