HTML Standard Tracker

Diff (omit for latest revision)

Short URL:

File a bug

SVNBugCommentTime (UTC)
3816readonly='' example.2009-09-13 07:12
Index: source
--- source	(revision 3815)
+++ source	(revision 3816)
@@ -38686,8 +38686,40 @@
+  <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">
+ &lt;table>
+  &lt;tr> &lt;th> Product ID &lt;th> Product name &lt;th> Price &lt;th> Action
+  &lt;tr>
+   &lt;td> &lt;input readonly name="" value="H412">
+   &lt;td> &lt;input required name="1.pname" value="Floor lamp Ulke">
+   &lt;td> $&lt;input required type=number min=0 step=0.01 name="1.pprice" value="49.99">
+   &lt;td> &lt;button formnovalidate name="action" value="delete:1">Delete&lt;/button>
+  &lt;tr>
+   &lt;td> &lt;input readonly name="" value="FG28">
+   &lt;td> &lt;input required name="2.pname" value="Table lamp Ulke">
+   &lt;td> $&lt;input required type=number min=0 step=0.01 name="2.pprice" value="24.99">
+   &lt;td> &lt;button formnovalidate name="action" value="delete:2">Delete&lt;/button>
+  &lt;tr>
+   &lt;td> &lt;input required name="" value="" pattern="[A-Z0-9]+">
+   &lt;td> &lt;input required name="3.pname" value="">
+   &lt;td> $&lt;input required type=number min=0 step=0.01 name="3.pprice" value="">
+   &lt;td> &lt;button formnovalidate name="action" value="delete:3">Delete&lt;/button>
+ &lt;/table>
+ &lt;p> &lt;button formnovalidate name="action" value="add">Add&lt;/button> &lt;/p>
+ &lt;p> &lt;button name="action" value="update">Save&lt;/button> &lt;/p>
+  </div>
   <h6>The <code title="attr-input-size">size</code> attribute</h6>
   <p>The <dfn title="attr-input-size"><code>size</code></dfn>