Skip to content
Permalink
Browse files
[e] (0) Tweak how things are defined for <output>'s reset algorithm s…
…o that it avoids confusion with respect to mutation events.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=9529

git-svn-id: http://svn.whatwg.org/webapps@5058 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 16, 2010
1 parent 488c7b5 commit e5cdae63204bdad50f1d832c13bef015d14ba24d
Showing with 51 additions and 48 deletions.
  1. +16 −15 complete.html
  2. +16 −15 index
  3. +19 −18 source
@@ -186,7 +186,7 @@

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<hgroup><h1>Web Applications 1.0</h1>
<h2 class="no-num no-toc">Draft Standard &mdash; 15 April 2010</h2>
<h2 class="no-num no-toc">Draft Standard &mdash; 16 April 2010</h2>
</hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
@@ -40438,19 +40438,20 @@ <h4 id=the-output-element><span class=secno>4.10.15 </span>The <dfn><code>output
<a href=#concept-output-mode title=concept-output-mode>value mode flag</a> must be set
to <i title=concept-output-mode-default>default</i>.</p>

<p>When the <a href=#concept-output-mode title=concept-output-mode>value mode
flag</a> 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 <a href=#concept-output-mode title=concept-output-mode>value mode
flag</a> 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 title=dom-output-defaultValue><a href=#dom-output-defaultvalue>defaultValue</a></code> IDL
attribute.</p>

<p>The element also has a <dfn id=concept-output-defaultvalue title=concept-output-defaultValue>default value</dfn>. Initially,
the <a href=#concept-output-defaultvalue title=concept-output-defaultValue>default value</a>
must be the empty string.</p>

<p>When the <a href=#concept-output-mode title=concept-output-mode>value mode flag</a>
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 <a href=#concept-output-defaultvalue title=concept-output-defaultValue>default
value</a>. When the <a href=#concept-output-mode title=concept-output-mode>value mode
flag</a> 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 <a href=#concept-output-defaultvalue title=concept-output-defaultValue>default value</a> is only
accessible using the <code title=dom-output-defaultValue><a href=#dom-output-defaultvalue>defaultValue</a></code> IDL
attribute.</p>

<p>Whenever the element's descendants are changed in any way, if the
<a href=#concept-output-mode title=concept-output-mode>value mode flag</a> is in mode
<i title=concept-output-mode-default>default</i>, the element's
@@ -40460,11 +40461,11 @@ <h4 id=the-output-element><span class=secno>4.10.15 </span>The <dfn><code>output

<p>The <a href=#concept-form-reset-control title=concept-form-reset-control>reset
algorithm</a> for <code><a href=#the-output-element>output</a></code> elements is to set the
element's <code><a href=#textcontent>textContent</a></code> IDL attribute to the value of the
element's <code title=dom-output-defaultValue><a href=#dom-output-defaultvalue>defaultValue</a></code>
IDL attribute (thus replacing the element's child nodes), and then
to set the element's <a href=#concept-output-mode title=concept-output-mode>value mode
flag</a> to <i title=concept-output-mode-default>default</i>.</p>
element's <a href=#concept-output-mode title=concept-output-mode>value mode flag</a>
to <i title=concept-output-mode-default>default</i> and then to
set the element's <code><a href=#textcontent>textContent</a></code> IDL attribute to the
value of the element's <a href=#concept-output-defaultvalue title=concept-output-defaultValue>default value</a> (thus
replacing the element's child nodes).</p>

</div>

31 index
@@ -190,7 +190,7 @@

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<hgroup><h1>HTML5 (including next generation additions still in development)</h1>
<h2 class="no-num no-toc">Draft Standard &mdash; 15 April 2010</h2>
<h2 class="no-num no-toc">Draft Standard &mdash; 16 April 2010</h2>
</hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
@@ -40339,19 +40339,20 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href=#htmleleme
<a href=#concept-output-mode title=concept-output-mode>value mode flag</a> must be set
to <i title=concept-output-mode-default>default</i>.</p>

<p>When the <a href=#concept-output-mode title=concept-output-mode>value mode
flag</a> 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 <a href=#concept-output-mode title=concept-output-mode>value mode
flag</a> 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 title=dom-output-defaultValue><a href=#dom-output-defaultvalue>defaultValue</a></code> IDL
attribute.</p>

<p>The element also has a <dfn id=concept-output-defaultvalue title=concept-output-defaultValue>default value</dfn>. Initially,
the <a href=#concept-output-defaultvalue title=concept-output-defaultValue>default value</a>
must be the empty string.</p>

<p>When the <a href=#concept-output-mode title=concept-output-mode>value mode flag</a>
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 <a href=#concept-output-defaultvalue title=concept-output-defaultValue>default
value</a>. When the <a href=#concept-output-mode title=concept-output-mode>value mode
flag</a> 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 <a href=#concept-output-defaultvalue title=concept-output-defaultValue>default value</a> is only
accessible using the <code title=dom-output-defaultValue><a href=#dom-output-defaultvalue>defaultValue</a></code> IDL
attribute.</p>

<p>Whenever the element's descendants are changed in any way, if the
<a href=#concept-output-mode title=concept-output-mode>value mode flag</a> is in mode
<i title=concept-output-mode-default>default</i>, the element's
@@ -40361,11 +40362,11 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href=#htmleleme

<p>The <a href=#concept-form-reset-control title=concept-form-reset-control>reset
algorithm</a> for <code><a href=#the-output-element>output</a></code> elements is to set the
element's <code><a href=#textcontent>textContent</a></code> IDL attribute to the value of the
element's <code title=dom-output-defaultValue><a href=#dom-output-defaultvalue>defaultValue</a></code>
IDL attribute (thus replacing the element's child nodes), and then
to set the element's <a href=#concept-output-mode title=concept-output-mode>value mode
flag</a> to <i title=concept-output-mode-default>default</i>.</p>
element's <a href=#concept-output-mode title=concept-output-mode>value mode flag</a>
to <i title=concept-output-mode-default>default</i> and then to
set the element's <code><a href=#textcontent>textContent</a></code> IDL attribute to the
value of the element's <a href=#concept-output-defaultvalue title=concept-output-defaultValue>default value</a> (thus
replacing the element's child nodes).</p>

</div>

37 source
@@ -45021,23 +45021,24 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
<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
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
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>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-value">value</i>, the contents of the
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>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 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {

<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>

0 comments on commit e5cdae6

Please sign in to comment.