Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[] (0) WF2: input.value is going to be generic and use a type-specifi…
…c algorithm instead of being type-specific like the others. Also, fiddle with the way we define and use the dirty flag.

git-svn-id: http://svn.whatwg.org/webapps@2211 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 18, 2008
1 parent 98b162d commit 22dc0ce
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 87 deletions.
76 changes: 22 additions & 54 deletions index
Expand Up @@ -27416,8 +27416,7 @@ function AddCloud(data, x, y) { ... }</pre>
href="#input0">input</a></code> element depends on the state of its <code
title=attr-input-type><a href="#type12">type</a></code> attribute.
Similarly, the <code title=dom-input-checked><a
href="#checked1">checked</a></code>, <code title=dom-input-value><a
href="#value8">value</a></code>, <code title=dom-input-valueAsDate><a
href="#checked1">checked</a></code>, <code title=dom-input-valueAsDate><a
href="#valueasdate">valueAsDate</a></code>, <code
title=dom-input-valueAsNumber><a
href="#valueasnumber">valueAsNumber</a></code>, <code
Expand Down Expand Up @@ -28340,47 +28339,6 @@ function AddCloud(data, x, y) { ... }</pre>

<td class=no> &middot; <!-- Button -->

<tr>
<th> <code title=dom-input-value><a href="#value8">value</a></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><a
href="#valueasdate">valueAsDate</a></code>
Expand Down Expand Up @@ -28641,7 +28599,9 @@ function AddCloud(data, x, y) { ... }</pre>
state must be invoked.

<p>Each <code><a href="#input0">input</a></code> element has a <a
href="#value10" title=concept-fe-value>value</a>.
href="#value10" title=concept-fe-value>value</a>, which is exposed by the
<code title=dom-input-value><a href="#value8">value</a></code> DOM
attribute.

<p>Each <code><a href="#input0">input</a></code> element has a boolean <dfn
id=mutability title=concept-input-mutability>mutability flag</dfn>. When
Expand All @@ -28661,10 +28621,16 @@ function AddCloud(data, x, y) { ... }</pre>
title=concept-input-immutable><a href="#immutable">immutable</a></i>.

<p>Each <code><a href="#input0">input</a></code> element has a boolean <dfn
id=dirty>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 <a href="#value10"
title=concept-fe-value>value</a>.
id=dirty title=concept-input-dirty-flag>dirty flag</dfn>. When it is true,
the element is said to be <dfn id=dirty0
title=concept-input-dirty><i>dirty</i></dfn>.

<p>The <a href="#dirty" title=concept-input-dirty-flag>dirty flag</a> must
be initially set to false (not <i title=concept-input-dirty><a
href="#dirty0">dirty</a></i>) when the element is created, and must be set
to true (<i title=concept-input-dirty><a href="#dirty0">dirty</a></i>)
whenever the user interacts with the control in a way that changes the <a
href="#value10" title=concept-fe-value>value</a>.

<p>The <dfn id=value7 title=attr-input-value><code>value</code></dfn>
content attribute gives the default <a href="#value10"
Expand All @@ -28679,9 +28645,11 @@ function AddCloud(data, x, y) { ... }</pre>

<p>The <a href="#reset5" title=concept-form-reset-control>reset
algorithm</a> for <code><a href="#input0">input</a></code> elements is to
set the <a href="#dirty">dirty flag</a> back to false, and then invoke the
<a href="#default2">default value change algorithm</a> defined for the
<code title=attr-input-type><a href="#type12">type</a></code> attribute's
set the <a href="#dirty" title=concept-input-dirty-flag>dirty flag</a>
back to false (not <i title=concept-input-dirty><a
href="#dirty0">dirty</a></i>), and then invoke the <a
href="#default2">default value change algorithm</a> defined for the <code
title=attr-input-type><a href="#type12">type</a></code> attribute's
current state.

<p>The <code title=attr-fae-form><a href="#form0">form</a></code> attribute
Expand Down Expand Up @@ -28761,9 +28729,9 @@ function AddCloud(data, x, y) { ... }</pre>
<p><strong>The <a href="#text2" title=attr-input-type-text>Text</a> state's
<a href="#default2">default value change algorithm</a> is as
follows:</strong> If the <code><a href="#input0">input</a></code> element
is not <a href="#dirty" title="dirty flag">dirty</a> then set the <a
href="#value10" title=concept-fe-value>value</a> of the element to the
value of the <code title=attr-input-value><a
is not <i title=concept-input-dirty><a href="#dirty0">dirty</a></i> then
set the <a href="#value10" title=concept-fe-value>value</a> of the element
to the value of the <code title=attr-input-value><a
href="#value7">value</a></code> content attribute and <a
href="#strip">strip line breaks from the value</a>.

Expand Down
51 changes: 18 additions & 33 deletions source
Expand Up @@ -24478,7 +24478,6 @@ function AddCloud(data, x, y) { ... }</pre>
<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
Expand Down Expand Up @@ -24977,28 +24976,6 @@ function AddCloud(data, x, y) { ... }</pre>
<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 -->
Expand Down Expand Up @@ -25142,7 +25119,8 @@ function AddCloud(data, x, y) { ... }</pre>
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
Expand All @@ -25162,11 +25140,17 @@ function AddCloud(data, x, y) { ... }</pre>
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
Expand All @@ -25179,8 +25163,9 @@ function AddCloud(data, x, y) { ... }</pre>
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>

Expand Down Expand Up @@ -25255,8 +25240,8 @@ function AddCloud(data, x, y) { ... }</pre>

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

0 comments on commit 22dc0ce

Please sign in to comment.