- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Sun, 13 Sep 2009 07:07:00 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv19899 Modified Files: Overview.html Log Message: readonly='' example. (whatwg r3816) Index: Overview.html =================================================================== 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><form action="products.cgi" method=post enctype="multipart/formdata"> + <table> + <tr> <th> Product ID <th> Product name <th> Price <th> Action + <tr> + <td> <input readonly name="1.pid" value="H412"> + <td> <input required name="1.pname" value="Floor lamp Ulke"> + <td> $<input required type=number min=0 step=0.01 name="1.pprice" value="49.99"> + <td> <button formnovalidate name="action" value="delete:1">Delete</button> + <tr> + <td> <input readonly name="2.pid" value="FG28"> + <td> <input required name="2.pname" value="Table lamp Ulke"> + <td> $<input required type=number min=0 step=0.01 name="2.pprice" value="24.99"> + <td> <button formnovalidate name="action" value="delete:2">Delete</button> + <tr> + <td> <input required name="3.pid" value="" pattern="[A-Z0-9]+"> + <td> <input required name="3.pname" value=""> + <td> $<input required type=number min=0 step=0.01 name="3.pprice" value=""> + <td> <button formnovalidate name="action" value="delete:3">Delete</button> + </table> + <p> <button formnovalidate name="action" value="add">Add</button> </p> + <p> <button name="action" value="update">Save</button> </p> +</form></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:11 UTC