Short URL: http://html5.org/r/3824
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 3824 | <textarea> and <output> examples, plus some minor changes to others. | 2009-09-13 11:06 |
Index: source
===================================================================
--- source (revision 3823)
+++ source (revision 3824)
@@ -39003,9 +39003,9 @@
<div class="example">
<p>The following date control limits input to dates that are before
- the start of the 21st century:</p>
+ the 1980s:</p>
- <pre><input name=bday type=date max="2000-12-31"></pre>
+ <pre><input name=bday type=date max="1979-12-31"></pre>
</div>
@@ -41059,8 +41059,17 @@
</div>
+ <div class="example">
+ <p>Here is an example of a <code>textarea</code> being used for
+ unrestricted free-form text input in a form:</p>
+ <pre><p>If you have any comments, please let us know: <textarea cols=80 name=comments></textarea></p></pre>
+
+ </div>
+
+
+
<h4>The <dfn><code>keygen</code></dfn> element</h4>
<dl class="element">
@@ -41379,7 +41388,7 @@
<pre><form action="processkey.cgi" method="post" enctype="multipart/formdata">
<p><keygen name="key"></p>
- <p><input type=submit value="Submit key...">
+ <p><input type=submit value="Submit key..."></p>
</form></pre>
<p>The server will then receive a form submission with a packaged
@@ -41564,8 +41573,21 @@
</div>
+ <div class="example">
+ <p>A simple calculator could use <code>output</code> for its
+ display of calculated results:</p>
+ <pre><form onsubmit="return false">
+ <input name=a type=number step=any> +
+ <input name=b type=number step=any> =
+ <output onforminput="value = a.value + b.value"></output>
+</form></pre>
+
+ </div>
+
+
+
<h4>Association of controls and forms</h4>
<p>A <span>form-associated element</span> can have a relationship