HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/2268

File a bug

SVNBugCommentTime (UTC)
2268WF2: <input type=hidden> and some preparations for type=image.2008-10-02 17:56
Index: source
===================================================================
--- source	(revision 2267)
+++ source	(revision 2268)
@@ -25141,8 +25141,8 @@
   owner</span> is the <code>form</code> element, with the exception of
   <code>input</code> elements whose <code
   title="attr-input-type">type</code> attribute is in the <span
-  title="attr-input-type-image-state">Image Button</span> state, which
-  must, for historical reasons, be excluded from this particular
+  title="attr-input-type-image">Image Button</span> state, which must,
+  for historical reasons, be excluded from this particular
   collection.</p>
 
   <p>The <dfn title="dom-form-length"><code>length</code></dfn> DOM
@@ -26415,15 +26415,61 @@
   title="attr-input-type-hidden">Hidden</span> state, the rules in
   this section apply.</p>
 
-  <p class="XXX">...</p>
+  <p>The <code>input</code> element represents a value that is not
+  intended to be examined or manipulated by the user.</p>
 
   <p><strong>Constraint validation:</strong> If an <code>input</code>
   element's <code title="attr-input-type">type</code> attribute is in
   the <span title="attr-input-type-hidden">Hidden</span> state, it is
   <span>barred from constraint validation</span>.</p>
 
+  <p><strong>The <span>value sanitization algorithm</span> is as
+  follows:</strong> Do nothing.</p>
 
+  <p>If the <code title="attr-input-value">name</code> attribute is
+  present and has a value that is a <span>case-sensitive</span> match
+  for the string "<code title="">_charset_</code>", then the element's
+  <code title="attr-input-value">value</code> attribute must be
+  omitted.</p>
 
+  <p>The 
+  <code title="dom-input-value">value</code>
+  DOM attribute applies to this element and is
+  in mode <span title="dom-input-value-value">value</span>.</p>
+
+  <p>The following content attributes must not be specified and do not
+  apply to the element:
+  <code class="no-backref" title="attr-input-accept">accept</code>,
+  <code class="no-backref" title="attr-fs-action">action</code>,
+  <code class="no-backref" title="attr-input-alt">alt</code>,
+  <code class="no-backref" title="attr-input-autocomplete">autocomplete</code>,
+  <code class="no-backref" title="attr-input-checked">checked</code>,
+  <code class="no-backref" title="attr-fs-enctype">enctype</code>,
+  <code class="no-backref" title="attr-input-list">list</code>,
+  <code class="no-backref" title="attr-input-max">max</code>,
+  <code class="no-backref" title="attr-input-maxlength">maxlength</code>,
+  <code class="no-backref" title="attr-fs-method">method</code>,
+  <code class="no-backref" title="attr-input-min">min</code>,
+  <code class="no-backref" title="attr-input-pattern">pattern</code>,
+  <code class="no-backref" title="attr-input-readonly">readonly</code>,
+  <code class="no-backref" title="attr-input-required">required</code>,
+  <code class="no-backref" title="attr-input-size">size</code>,
+  <code class="no-backref" title="attr-input-src">src</code>,
+  <code class="no-backref" title="attr-input-step">step</code>, and
+  <code class="no-backref" title="attr-fs-target">target</code>.</p>
+
+  <p>The following DOM attributes and methods do not apply to the
+  element:
+  <code class="no-backref" title="dom-input-checked">checked</code>,
+  <code class="no-backref" title="dom-input-list">list</code>,
+  <code class="no-backref" title="dom-input-selectedOption">selectedOption</code>,
+  <code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code>, and
+  <code class="no-backref" title="dom-input-valueAsNumber">valueAsNumber</code> DOM attributes
+  <code class="no-backref" title="dom-input-stepUp">stepUp()</code>, and
+  <code class="no-backref" title="dom-input-stepDown">stepDown()</code> methods.</p>
+
+
+
   <h6><dfn title="attr-input-type-text">Text</dfn> state</h6>
 
   <p>When an <code>input</code> element's <code
@@ -27929,6 +27975,9 @@
   title="attr-input-type-image">Image Button</span> state, the rules
   in this section apply.</p>
 
+  <p>the element's <code title="attr-input-value">value</code>
+  attribute must be omitted.</p>
+
   <p class="XXX">...</p>
 
   <p class="XXX">... <dfn title="attr-input-alt"><code>alt</code></dfn></p>

|