HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2205WF2: Fill in some detail for <input type=text>2008-09-17 22:02
@@ -24491,20 +24491,38 @@ function AddCloud(data, x, y) { ... }</pre>
   title="attr-input-type">type</code> attribute changes state, and
   when the element is first created, the <dfn>control
   initialization</dfn> algorithm defined for the <code
   title="attr-input-type">type</code> attribute's state at the time
   must be invoked and the element's rendering and behaviour must
   change accordingly.</p>
 
   <p>Each <code>input</code> element has a <span
   title="concept-fe-value">value</span>.</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>
+
+  <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>
+
   <p>Each <code>input</code> element has a boolean <dfn>dirty
   flag</dfn>, which must be initially set to false when the element is
   created, and which must be set to true whenever the user interacts
   with the control in a way that changes the <span
   title="concept-fe-value">value</span>.</p>
 
   <p>The <dfn title="attr-input-value"><code>value</code></dfn>
   content attribute gives the default <span
   title="concept-fe-value">value</span> of the <code>input</code>
   element. When the <code title="attr-input-value">value</code>
@@ -24566,69 +24584,69 @@ 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, it represents a text
-  edit control for a single line of plain text.</p>
+  title="attr-input-type-text">Text</span> state, the element
+  represents a text edit control for a single line of plain text.</p>
 
   <p><strong>The <span title="attr-input-type-text">Text</span>
   state's <span>control initialization</span> algorithm is as
   follows:</strong> Run the <span>line feed stripper</span>
   algorithm.</p>
 
+  <!-- XXX autocomplete? -->
+
   <p><strong>The <span title="attr-input-type-text">Text</span>
   state's <span>default value change</span> algorithm is as
   follows:</strong> If the <code>input</code> element is not
   <span>dirty</span> 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 run the <span>line feed stripper</span> algorithm.</p>
 
   <p>The <dfn>line feed stripper</dfn> algorithm consists of removing
   any U+000A LINE FEED (LF) characters from <span
   title="concept-fe-value">value</span>.</p>
 
-  <p>User agents must not allow users to insert U+000A LINE FEED (LF)
-  characters into the <span title="concept-fe-value">value</span> of
-  an <code>input</code> element whose <code
+  <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.</p>
-
-  <!-- XXX allow users to edit, when not disabled or readonly -->
-
-  <p class="big-issue">...</p>
+  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) characters into the <span title="concept-fe-value">value</span>
+  of such <code>input</code> elements.</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>,
   <code title="attr-input-pattern">pattern</code>,
   <code title="attr-input-readonly">readonly</code>,
-  <code title="attr-input-required">required</code>,
-  <code title="attr-input-size">size</code>, and
-  <code title="attr-input-value">value</code>.</p>
+  <code title="attr-input-required">required</code>, and
+  <code title="attr-input-size">size</code>.</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
-  attributes must not be specified:
+  attributes must not be specified and do not apply:
   <code class="no-backref" title="attr-input-accept">accept</code>,
   <code class="no-backref" title="attr-input-alt">alt</code>,
   <code class="no-backref" title="attr-input-checked">checked</code>,
   <code class="no-backref" title="attr-input-max">max</code>,
   <code class="no-backref" title="attr-input-min">min</code>,
   <code class="no-backref" title="attr-input-src">src</code>,
   <code class="no-backref" title="attr-input-step">step</code>,
   <code class="no-backref" title="attr-fs-target">target</code>,
   <code class="no-backref" title="attr-fs-method">method</code>,
   <code class="no-backref" title="attr-fs-enctype">enctype</code>, and

|