W3C home > Mailing lists > Public > public-html-diffs@w3.org > September 2009

hixie: <textarea> and <output> examples, plus some minor changes to others. (whatwg r3824)

From: poot <cvsmail@w3.org>
Date: Sun, 13 Sep 2009 20:01:36 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20090913110137.1A2A62BCBE@toro.w3.mag.keio.ac.jp>
hixie: <textarea> and <output> examples, plus some minor changes to
others. (whatwg r3824)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2992&r2=1.2993&f=h
http://html5.org/tools/web-apps-tracker?from=3823&to=3824

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2992
retrieving revision 1.2993
diff -u -d -r1.2992 -r1.2993
--- Overview.html	13 Sep 2009 09:30:36 -0000	1.2992
+++ Overview.html	13 Sep 2009 11:01:12 -0000	1.2993
@@ -31134,9 +31134,9 @@
   </div><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"&gt;</pre>
+   <pre>&lt;input name=bday type=date max="1979-12-31"&gt;</pre>
 
   </div><div class="example">
 
@@ -32619,6 +32619,13 @@
   and <code title="dom-textarea/input-setSelectionRange"><a href="#dom-textarea-input-setselectionrange">setSelectionRange()</a></code>
   methods and attributes expose the element's text selection.</p>
 
+  </div><div class="example">
+
+   <p>Here is an example of a <code><a href="#the-textarea-element">textarea</a></code> being used for
+   unrestricted free-form text input in a form:</p>
+
+   <pre>&lt;p&gt;If you have any comments, please let us know: &lt;textarea cols=80 name=comments&gt;&lt;/textarea&gt;&lt;/p&gt;</pre>
+
   </div><h4 id="the-keygen-element"><span class="secno">4.10.11 </span>The <dfn><code>keygen</code></dfn> element</h4><p class="XXX annotation"><b>Status: </b><i>First draft</i><dl class="element"><dt>Categories</dt>
    <dd><a href="#flow-content">Flow content</a>.</dd>
    <dd><a href="#phrasing-content">Phrasing content</a>.</dd>
@@ -32862,7 +32869,7 @@
 
    <pre>&lt;form action="processkey.cgi" method="post" enctype="multipart/formdata"&gt;
  &lt;p&gt;&lt;keygen name="key"&gt;&lt;/p&gt;
- &lt;p&gt;&lt;input type=submit value="Submit key..."&gt;
+ &lt;p&gt;&lt;input type=submit value="Submit key..."&gt;&lt;/p&gt;
 &lt;/form&gt;</pre>
 
    <p>The server will then receive a form submission with a packaged
@@ -33006,6 +33013,17 @@
   elements are always <a href="#barred-from-constraint-validation">barred from constraint
   validation</a>.</p>
 
+  </div><div class="example">
+
+   <p>A simple calculator could use <code><a href="#the-output-element">output</a></code> for its
+   display of calculated results:</p>
+
+   <pre>&lt;form onsubmit="return false"&gt;
+ &lt;input name=a type=number step=any&gt; +
+ &lt;input name=b type=number step=any&gt; =
+ &lt;output onforminput="value = a.value + b.value"&gt;&lt;/output&gt;
+&lt;/form&gt;</pre>
+
   </div><h4 id="association-of-controls-and-forms"><span class="secno">4.10.13 </span>Association of controls and forms</h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i><p>A <a href="#form-associated-element">form-associated element</a> can have a relationship
   with a <code><a href="#the-form-element">form</a></code> element, which is called the element's
   <dfn id="form-owner">form owner</dfn>. If a <a href="#form-associated-element">form-associated element</a> is
Received on Sunday, 13 September 2009 11:02:13 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:09:00 UTC