HTML5 Tracker

Diff (omit for latest revision)
Filter

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

SVNBugCommentTime (UTC)
50589529Tweak how things are defined for <output>'s reset algorithm so that it avoids confusion with respect to mutation events.2010-04-16 00:58
Index: source
===================================================================
--- source	(revision 5057)
+++ source	(revision 5058)
@@ -45021,23 +45021,24 @@
   <span title="concept-output-mode">value mode flag</span> must be set
   to <i title="concept-output-mode-default">default</i>.</p>
 
-  <p>When the <span title="concept-output-mode">value mode
+  <p>The element also has a <dfn
+  title="concept-output-defaultValue">default value</dfn>. Initially,
+  the <span title="concept-output-defaultValue">default value</span>
+  must be the empty string.</p>
+
+  <p>When the <span title="concept-output-mode">value mode flag</span>
+  is in mode <i title="concept-output-mode-default">default</i>, the
+  contents of the element represent both the value of the element and
+  its <span title="concept-output-defaultValue">default
+  value</span>. When the <span title="concept-output-mode">value mode
   flag</span> is in mode <i
-  title="concept-output-mode-default">default</i>, the contents of the
-  element represent both the value of the element and its default
-  value. When the <span title="concept-output-mode">value mode
-  flag</span> is in mode <i
   title="concept-output-mode-value">value</i>, the contents of the
-  element represent the value of the element only, and the default
-  value is only accessible using the <code
+  element represent the value of the element only, and the <span
+  title="concept-output-defaultValue">default value</span> is only
+  accessible using the <code
   title="dom-output-defaultValue">defaultValue</code> IDL
   attribute.</p>
 
-  <p>The element also has a <dfn
-  title="concept-output-defaultValue">default value</dfn>. Initially,
-  the <span title="concept-output-defaultValue">default value</span>
-  must be the empty string.</p>
-
   <p>Whenever the element's descendants are changed in any way, if the
   <span title="concept-output-mode">value mode flag</span> is in mode
   <i title="concept-output-mode-default">default</i>, the element's
@@ -45047,12 +45048,12 @@
 
   <p>The <span title="concept-form-reset-control">reset
   algorithm</span> for <code>output</code> elements is to set the
-  element's <code>textContent</code> IDL attribute to the value of the
-  element's <code title="dom-output-defaultValue">defaultValue</code>
-  IDL attribute (thus replacing the element's child nodes), and then
-  to set the element's <span title="concept-output-mode">value mode
-  flag</span> to <i
-  title="concept-output-mode-default">default</i>.</p>
+  element's <span title="concept-output-mode">value mode flag</span>
+  to <i title="concept-output-mode-default">default</i> and then to
+  set the element's <code>textContent</code> IDL attribute to the
+  value of the element's <span
+  title="concept-output-defaultValue">default value</span> (thus
+  replacing the element's child nodes).</p>
 
   </div>
 

|