HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2213WF2: Define input.value, especially for type=text; and related tweaks to make things read better.2008-09-18 03:18
@@ -25122,21 +25122,25 @@ function AddCloud(data, x, y) { ... }</pre>
   title="concept-fe-value">value</span>, which is exposed by the <code
   title="dom-input-value">value</code> DOM attribute.</p>
 
   <p>Each <code>input</code> element has a boolean <dfn
   title="concept-input-mutability">mutability flag</dfn>. When it is
   true, the element is said to be <dfn
   title="concept-input-mutable"><i>mutable</i></dfn>, and when it is
   false the element is <dfn
   title="concept-input-immutable"><i>immutable</i></dfn>. Unless
   otherwise specified, an <code>input</code> element is always <i
-  title="concept-input-mutable">mutable</i>.</p>
+  title="concept-input-mutable">mutable</i>. When an
+  <code>input</code> element is <i
+  title="concept-input-immutable">immutable</i>, the user agent should
+  not allow the user to modify the <span
+  title="concept-fe-value">value</span>.</p>
 
   <p>When an <code>input</code> element is <span
   title="concept-fe-disabled">disabled</span>, it is <i
   title="concept-input-immutable">immutable</i>.</p>
 
   <p class="note">The <code
   title="attr-input-readonly">readonly</code> attribute can also make
   an <code>input</code> element <i
   title="concept-input-immutable">immutable</i>.</p>
 
@@ -25222,46 +25226,52 @@ function AddCloud(data, x, y) { ... }</pre>
   <h6><dfn title="attr-input-type-text">Text</dfn> state</h6>
 
   <p>When an <code>input</code> element's <code title="attr-input-type">type</code>
   attribute is absent, has the value <code title="attr-input-type-text-keyword">text</code>,
   or has an invalid value, it is in the <span
   title="attr-input-type-text">Text</span> state.</p>
 
   <p>When an <code>input</code> element's <code
   title="attr-input-type">type</code> attribute is in the <span
   title="attr-input-type-text">Text</span> state, the element
-  represents a text edit control for a single line of plain text.</p>
+  represents a one line plain text edit control for the element's
+  <span title="concept-fe-value">value</span>.</p>
+
+  <p>If an <code>input</code> element whose <code
+  title="attr-input-type">type</code> attribute is in the <span
+  title="attr-input-type-text">Text</span> state is <i
+  title="concept-input-mutable">mutable</i>, its <span
+  title="concept-fe-value">value</span> should be editable by the
+  user. User agents must not allow users to insert U+000A LINE FEED
+  (LF) or U+000D CARRIAGE RETURN (CR) characters into the <span
+  title="concept-fe-value">value</span> of such <code>input</code>
+  elements.</p>
 
   <p><strong>The <span title="attr-input-type-text">Text</span>
   state's <span>control initialization algorithm</span> is as
   follows:</strong> <span>Strip line breaks from the
   value</span>.</p>
 
   <!-- XXX autocomplete? -->
 
   <p><strong>The <span title="attr-input-type-text">Text</span>
   state's <span>default value change algorithm</span> is as
   follows:</strong> If the <code>input</code> element is not <i
   title="concept-input-dirty">dirty</i> then set the <span
   title="concept-fe-value">value</span> of the element to the value of
   the <code title="attr-input-value">value</code> content attribute
   and <span>strip line breaks from the value</span>.</p>
 
-  <p>If an <code>input</code> element whose <code
-  title="attr-input-type">type</code> attribute is in the <span
-  title="attr-input-type-text">Text</span> state is <i
-  title="concept-input-mutable">mutable</i>, its <span
-  title="concept-fe-value">value</span> should be editable by the
-  user. User agents must not allow users to insert U+000A LINE FEED
-  (LF) or U+000D CARRIAGE RETURN (CR) characters into the <span
-  title="concept-fe-value">value</span> of such <code>input</code>
-  elements.</p>
+  <p><strong>The <span><code title="dom-input-value">value</code>
+  setter algorithm</span> is as follows:</strong> Set the <span
+  title="concept-fe-value">value</span> of the element to the new
+  value and <span>strip line breaks from the value</span>.</p>
 
   <p>When an <code>input</code> element's <code
   title="attr-input-type">type</code> attribute is in the <span
   title="attr-input-type-text">Text</span> state, the following common
   <code>input</code> element attributes apply to the element:
   <code title="attr-input-autocomplete">autocomplete</code>,
   <code title="attr-input-autofocus">autofocus</code>,
   <code title="attr-input-inputmode">inputmode</code>,
   <code title="attr-input-list">list</code>,
   <code title="attr-input-maxlength">maxlength</code>,
@@ -25576,21 +25586,28 @@ rel="" on submit buttons?
   should not be trivially accessible, as there are significant
   security implications for the user if support for this attribute is
   disabled.</p>
 
 
 
   <h5>Common <code>input</code> element APIs</h5>
 
   <h6>Value manipulation</h6>
 
-  <p class="big-issue">... <dfn title="dom-input-value"><code>value</code></dfn></p>
+  <p>The <dfn title="dom-input-value"><code>value</code></dfn> DOM
+  attribute allows secripts to manipulate the <span
+  title="concept-input-value">value</span> of an <code>input</code>
+  element. On getting, it must return the current <span
+  title="concept-input-value">value</span> of the element. On setting,
+  it must run the <dfn><code title="dom-input-value">value</code>
+  setter algorithm</dfn> defined for the element's <code
+  title="attr-input-type">type</code> attribute's current state.</p>
 
   <hr>
 
   <p>The <dfn
   title="dom-input-valueAsDate"><code>valueAsDate</code></dfn> DOM
   attribute represents the <span
   title="concept-input-value">value</span> of the element, interpreted
   as a date.</p>
 
   <p>On getting, if the <code

|