HTML Standard Tracker

Diff (omit for latest revision)
Filter

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

File a bug

SVNBugCommentTime (UTC)
2207WF2: Define resetting for >input> elements.2008-09-17 22:31
Index: source
===================================================================
--- source	(revision 2206)
+++ source	(revision 2207)
@@ -24489,11 +24489,11 @@
 
   <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>
@@ -24530,8 +24530,14 @@
   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>
@@ -53641,6 +53647,8 @@
  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')

|