HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
3816readonly='' example.2009-09-13 07:12
@@ -38679,20 +38679,52 @@ interface <dfn>HTMLFormElement</dfn> : <span>HTMLElement</span> {
 
   <div class="impl">
 
   <p><strong>Constraint validation</strong>: If the <code
   title="attr-input-readonly">readonly</code> attribute is specified
   on an <code>input</code> element, the element is <span>barred from
   constraint validation</span>.</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">
+ &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="1.pid" 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="2.pid" 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="3.pid" 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>
+&lt;/form></pre>
+
+  </div>
+
 
 
   <h6>The <code title="attr-input-size">size</code> attribute</h6>
 
   <p>The <dfn 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
   the element's <span title="concept-fe-value">value</span>.</p>
 
   <p>The <code title="attr-input-size">size</code> attribute, if

|