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

hixie: readonly='' example. (whatwg r3816)

From: poot <cvsmail@w3.org>
Date: Sun, 13 Sep 2009 16:07:23 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20090913070723.CB6422BCB3@toro.w3.mag.keio.ac.jp>
hixie: readonly='' example. (whatwg r3816)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2984&r2=1.2985&f=h
http://html5.org/tools/web-apps-tracker?from=3815&to=3816

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2984
retrieving revision 1.2985
diff -u -d -r1.2984 -r1.2985
--- Overview.html	13 Sep 2009 06:15:41 -0000	1.2984
+++ Overview.html	13 Sep 2009 07:06:57 -0000	1.2985
@@ -30920,6 +30920,36 @@
   on an <code><a href="#the-input-element">input</a></code> element, the element is <a href="#barred-from-constraint-validation">barred from
   constraint validation</a>.</p>
 
+  </div><div class="example">
+
+   <p>In the following example, the existing product identifiers
+   cannot be modified, but they are still displayed as part of the
+   form, for consistency with the row representing a new product
+   (where the identifier is not yet filled in).</p>
+
+   <pre>&lt;form action="products.cgi" method=post enctype="multipart/formdata"&gt;
+ &lt;table&gt;
+  &lt;tr&gt; &lt;th&gt; Product ID &lt;th&gt; Product name &lt;th&gt; Price &lt;th&gt; Action
+  &lt;tr&gt;
+   &lt;td&gt; &lt;input readonly name="1.pid" value="H412"&gt;
+   &lt;td&gt; &lt;input required name="1.pname" value="Floor lamp Ulke"&gt;
+   &lt;td&gt; $&lt;input required type=number min=0 step=0.01 name="1.pprice" value="49.99"&gt;
+   &lt;td&gt; &lt;button formnovalidate name="action" value="delete:1"&gt;Delete&lt;/button&gt;
+  &lt;tr&gt;
+   &lt;td&gt; &lt;input readonly name="2.pid" value="FG28"&gt;
+   &lt;td&gt; &lt;input required name="2.pname" value="Table lamp Ulke"&gt;
+   &lt;td&gt; $&lt;input required type=number min=0 step=0.01 name="2.pprice" value="24.99"&gt;
+   &lt;td&gt; &lt;button formnovalidate name="action" value="delete:2"&gt;Delete&lt;/button&gt;
+  &lt;tr&gt;
+   &lt;td&gt; &lt;input required name="3.pid" value="" pattern="[A-Z0-9]+"&gt;
+   &lt;td&gt; &lt;input required name="3.pname" value=""&gt;
+   &lt;td&gt; $&lt;input required type=number min=0 step=0.01 name="3.pprice" value=""&gt;
+   &lt;td&gt; &lt;button formnovalidate name="action" value="delete:3"&gt;Delete&lt;/button&gt;
+ &lt;/table&gt;
+ &lt;p&gt; &lt;button formnovalidate name="action" value="add"&gt;Add&lt;/button&gt; &lt;/p&gt;
+ &lt;p&gt; &lt;button name="action" value="update"&gt;Save&lt;/button&gt; &lt;/p&gt;
+&lt;/form&gt;</pre>
+
   </div><h6 id="the-size-attribute"><span class="secno">4.10.4.2.4 </span>The <code title="attr-input-size"><a href="#attr-input-size">size</a></code> attribute</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i><p>The <dfn id="attr-input-size" title="attr-input-size"><code>size</code></dfn>
   attribute gives the number of characters that, in a visual
   rendering, the user agent is to allow the user to see while editing
Received on Sunday, 13 September 2009 07:07:59 UTC

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