HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2207WF2: Define resetting for >input> elements.2008-09-17 22:31
@@ -24482,25 +24482,25 @@ function AddCloud(data, x, y) { ... }</pre>
   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.</p>
 
   <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 <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>
+  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</dfn> algorithm 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>
 
   <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
@@ -24523,21 +24523,27 @@ function AddCloud(data, x, y) { ... }</pre>
   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</span> algorithm, the <dfn>default value change</dfn>
   algorithm defined for the <code title="attr-input-type">type</code>
-  attribute's state at the time must be invoked.</p>
+  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
+  <span>default value change</span> algorithm 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>
 
   <p>The <dfn title="dom-input-accept"><code>accept</code></dfn>, <dfn
@@ -53634,20 +53640,22 @@ TODO (or delay):
        > author errors, I suggest that the following attributes be made required:
        > href and rel on link
        > href on base
        > name and content on meta (other than the encoding decl)
        > src on img
        > code, height and width on applet
        > name and value on param
  XXX * command="" feature
  XXX * DOM0 quirks that Mozilla knows about:
        http://lxr.mozilla.org/seamonkey/source/dom/src/base/nsDOMClassInfo.cpp
+ XXX * make the spec consistent about whether the word "algorithm" is part of
+       an algorithm's name or not ("</dfn> algorithm", "</span> algorithm")
  XXX * make a consistent decision of which of the following formats to use:
          U+1234 FOO BAR character ("foo")
          U+1234 FOO BAR character ('foo')
          U+1234 FOO BAR character (foo)
          U+1234 FOO BAR ("foo") character
          U+1234 FOO BAR ('foo') character
          U+1234 FOO BAR (foo) character
          U+1234 FOO BAR character ("<code title="">foo</code>")
          U+1234 FOO BAR character ('<code title="">foo</code>')
          U+1234 FOO BAR character (<code title="">foo</code>)

|