HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2211WF2: input.value is going to be generic and use a type-specific algorithm instead of being type-specific like the others. Also, fiddle with the way we define and use the dirty flag.2008-09-18 00:21
@@ -24471,21 +24471,20 @@ function AddCloud(data, x, y) { ... }</pre>
   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>, <code
   title="attr-input-src">src</code>, <code
   title="attr-input-step">step</code>, and <code
   title="attr-fs-target">target</code> attributes apply to an
   <code>input</code> element depends on the state of its <code
   title="attr-input-type">type</code> attribute. Similarly, the <code
   title="dom-input-checked">checked</code>, <code
-  title="dom-input-value">value</code>, <code
   title="dom-input-valueAsDate">valueAsDate</code>, <code
   title="dom-input-valueAsNumber">valueAsNumber</code>, <code
   title="dom-input-list">list</code>, and <code
   title="dom-input-selectedOption">selectedOption</code> DOM
   attributes, and the <code title="dom-input-stepUp">stepUp()</code>
   and <code title="dom-input-stepDown">stepDown()</code> methods, are
   specific to certain states. The following table is non-normative and
   summarises which content attributes, DOM attrbutes, and methods
   apply to each state:</p>
 
@@ -24971,42 +24970,20 @@ function AddCloud(data, x, y) { ... }</pre>
      <td class="no"> &middot; <!-- Checkbox -->
      <td class="no"> &middot; <!-- Radio Button -->
      <td class="no"> &middot; <!-- File -->
      <td class="no"> &middot; <!-- Hidden -->
      <td class="no"> &middot; <!-- Submit Button -->
      <td class="no"> &middot; <!-- Image Button -->
      <td class="no"> &middot; <!-- Reset Button -->
      <td class="no"> &middot; <!-- Button -->
 
     <tr>
-     <th> <code title="dom-input-value">value</code>
-     <td class="yes"> Yes <!-- Text, Password -->
-     <td class="no"> &middot; <!-- E-mail -->
-     <td class="no"> &middot; <!-- URL -->
-     <td class="no"> &middot; <!-- Date and Time -->
-     <td class="no"> &middot; <!-- Local Date and Time -->
-     <td class="no"> &middot; <!-- Date -->
-     <td class="no"> &middot; <!-- Month -->
-     <td class="no"> &middot; <!-- Week -->
-     <td class="no"> &middot; <!-- Time -->
-     <td class="no"> &middot; <!-- Number -->
-     <td class="no"> &middot; <!-- Range -->
-     <td class="no"> &middot; <!-- Checkbox -->
-     <td class="no"> &middot; <!-- Radio Button -->
-     <td class="no"> &middot; <!-- File -->
-     <td class="no"> &middot; <!-- Hidden -->
-     <td class="no"> &middot; <!-- Submit Button -->
-     <td class="no"> &middot; <!-- Image Button -->
-     <td class="no"> &middot; <!-- Reset Button -->
-     <td class="no"> &middot; <!-- Button -->
-
-    <tr>
      <th> <code title="dom-input-valueAsDate">valueAsDate</code>
      <td class="no"> &middot; <!-- Text, Password -->
      <td class="no"> &middot; <!-- E-mail -->
      <td class="no"> &middot; <!-- URL -->
      <td class="no"> &middot; <!-- Date and Time -->
      <td class="no"> &middot; <!-- Local Date and Time -->
      <td class="no"> &middot; <!-- Date -->
      <td class="no"> &middot; <!-- Month -->
      <td class="no"> &middot; <!-- Week -->
      <td class="no"> &middot; <!-- Time -->
@@ -25135,59 +25112,67 @@ function AddCloud(data, x, y) { ... }</pre>
 
   <p>When an <code>input</code> element's <code
   title="attr-input-type">type</code> attribute changes state, and
   when the element is first created, the element's rendering and
   behaviour must change to the new state's accordingly and the
   <dfn>control initialization algorithm</dfn> defined for the <code
   title="attr-input-type">type</code> attribute's new state must be
   invoked.</p>
 
   <p>Each <code>input</code> element has a <span
-  title="concept-fe-value">value</span>.</p>
+  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>
 
   <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>Each <code>input</code> element has a boolean <dfn
+  title="concept-input-dirty-flag">dirty flag</dfn>. When it is true,
+  the element is said to be <dfn
+  title="concept-input-dirty"><i>dirty</i></dfn>.</p>
+
+  <p>The <span title="concept-input-dirty-flag">dirty flag</span> must
+  be initially set to false (not <i
+  title="concept-input-dirty">dirty</i>) when the element is created,
+  and must be set to true (<i title="concept-input-dirty">dirty</i>)
+  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>
   content attribute is added, set, or removed, and when the element is
   first created, after invoking the <span>control initialization
   algorithm</span>, the <dfn>default value change algorithm</dfn>
   defined for the <code title="attr-input-type">type</code>
   attribute's current state must be invoked.</p>
 
   <p>The <span title="concept-form-reset-control">reset
-  algorithm</span> for <code>input</code> elements is to set the
-  <span>dirty flag</span> back to false, and then invoke the
+  algorithm</span> for <code>input</code> elements is to set the <span
+  title="concept-input-dirty-flag">dirty flag</span> back to false
+  (not <i title="concept-input-dirty">dirty</i>), and then invoke the
   <span>default value change algorithm</span> defined for the <code
   title="attr-input-type">type</code> attribute's current state.</p>
 
   <p>The <code title="attr-fae-form">form</code> attribute is used to
   explicitly associate the <code>input</code> element with its
   <span>form owner</span>. The <code title="attr-fe-name">name</code>
   attribute represents the element's name. The <code
   title="attr-fe-disabled">disabled</code> attribute is used to make
   the control non-interactive and to prevent its value from being
   submitted.</p>
@@ -25248,22 +25233,22 @@ function AddCloud(data, x, y) { ... }</pre>
 
   <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 <span
-  title="dirty flag">dirty</span> then set the <span
+  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

|