HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/3824

File a bug

SVNBugCommentTime (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>&lt;input name=bday type=date max="2000-12-31"></pre>
+   <pre>&lt;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>&lt;p>If you have any comments, please let us know: &lt;textarea cols=80 name=comments>&lt;/textarea>&lt;/p></pre>
+
+  </div>
+
+
+
   <h4>The <dfn><code>keygen</code></dfn> element</h4>
 
   <dl class="element">
@@ -41379,7 +41388,7 @@
 
    <pre>&lt;form action="processkey.cgi" method="post" enctype="multipart/formdata">
  &lt;p>&lt;keygen name="key">&lt;/p>
- &lt;p>&lt;input type=submit value="Submit key...">
+ &lt;p>&lt;input type=submit value="Submit key...">&lt;/p>
 &lt;/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>&lt;form onsubmit="return false">
+ &lt;input name=a type=number step=any> +
+ &lt;input name=b type=number step=any> =
+ &lt;output onforminput="value = a.value + b.value">&lt;/output>
+&lt;/form></pre>
+
+  </div>
+
+
+
   <h4>Association of controls and forms</h4>
 
   <p>A <span>form-associated element</span> can have a relationship

|