[html5] r3820 - [e] (0) step/min/max examples.
whatwg at whatwg.org
whatwg at whatwg.org
Sun Sep 13 00:50:29 PDT 2009
Author: ianh
Date: 2009-09-13 00:50:28 -0700 (Sun, 13 Sep 2009)
New Revision: 3820
Modified:
index
source
Log:
[e] (0) step/min/max examples.
Modified: index
===================================================================
--- index 2009-09-13 07:40:08 UTC (rev 3819)
+++ index 2009-09-13 07:50:28 UTC (rev 3820)
@@ -35066,7 +35066,25 @@
</div>
+ <div class=example>
+ <p>The following date control limits input to dates that are before
+ the start of the 21st century:</p>
+
+ <pre><input name=bday type=date max="2000-12-31"></pre>
+
+ </div>
+
+ <div class=example>
+
+ <p>The following number control limits input to whole numbers
+ greater than zero:</p>
+
+ <pre><input name=quantity required type=number min=1 value=1></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>The <dfn id=attr-input-step title=attr-input-step><code>step</code></dfn>
@@ -35127,8 +35145,31 @@
</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><input name=opacity type=range min=0 max=1 step=0.00392156863></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><input name=favtime type=time step=any></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>
<!-- similar text in the <textarea> section -->
Modified: source
===================================================================
--- source 2009-09-13 07:40:08 UTC (rev 3819)
+++ source 2009-09-13 07:50:28 UTC (rev 3820)
@@ -39000,7 +39000,25 @@
</div>
+ <div class="example">
+ <p>The following date control limits input to dates that are before
+ the start of the 21st century:</p>
+
+ <pre><input name=bday type=date max="2000-12-31"></pre>
+
+ </div>
+
+ <div class="example">
+
+ <p>The following number control limits input to whole numbers
+ greater than zero:</p>
+
+ <pre><input name=quantity required type=number min=1 value=1></pre>
+
+ </div>
+
+
<h6>The <code title="attr-input-step">step</code> attribute</h6>
<p>The <dfn title="attr-input-step"><code>step</code></dfn>
@@ -39079,8 +39097,31 @@
</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><input name=opacity type=range min=0 max=1 step=0.00392156863></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><input name=favtime type=time step=any></pre>
+
+ <p>Normally, time controls are limited to an accuracy of one
+ minute.</p>
+
+ </div>
+
+
+
+
<h6>The <code title="attr-input-placeholder">placeholder</code> attribute</h6>
<!-- similar text in the <textarea> section -->
More information about the Commit-Watchers
mailing list