Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (2) Cloning an <input> element saves state.
git-svn-id: http://svn.whatwg.org/webapps@3854 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 15, 2009
1 parent f4ecda4 commit 72157d1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
8 changes: 5 additions & 3 deletions index
Expand Up @@ -32018,9 +32018,7 @@ interface <dfn id=htmlformelement>HTMLFormElement</dfn> : <a href=#htmlelement>H
<a href=#value-sanitization-algorithm>value sanitization algorithm</a>, if the <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute's current state
defines one.</p>

<p>Each <code><a href=#the-input-element>input</a></code> element has a boolean <dfn id=concept-input-mutability title=concept-input-mutability>mutability flag</dfn>. When it is
true, the element is said to be <dfn id=concept-input-mutable title=concept-input-mutable><i>mutable</i></dfn>, and when it is
false the element is <dfn id=concept-input-immutable title=concept-input-immutable><i>immutable</i></dfn>. Unless
<p>Each <code><a href=#the-input-element>input</a></code> element is either <dfn id=concept-input-mutable title=concept-input-mutable><i>mutable</i></dfn> or <dfn id=concept-input-immutable title=concept-input-immutable><i>immutable</i></dfn>. Unless
otherwise specified, an <code><a href=#the-input-element>input</a></code> element is always <i title=concept-input-mutable><a href=#concept-input-mutable>mutable</a></i>. Unless otherwise
specified, the user agent should not allow the user to modify the
element's <a href=#concept-fe-value title=concept-fe-value>value</a> or <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a>.</p>
Expand All @@ -32036,6 +32034,10 @@ interface <dfn id=htmlformelement>HTMLFormElement</dfn> : <a href=#htmlelement>H
some cases (e.g. for the <a href=#date-state title=attr-input-type-date>Date</a> state, but not the <a href=#checkbox-state title=attr-input-type-checkbox>Checkbox</a> state) make an
<code><a href=#the-input-element>input</a></code> element <i title=concept-input-immutable><a href=#concept-input-immutable>immutable</a></i>.</p>

<p>When an <code><a href=#the-input-element>input</a></code> element is cloned, the element's <a href=#concept-fe-value title=concept-fe-value>value</a>, <a href=#concept-input-value-dirty-flag title=concept-input-value-dirty-flag>dirty value flag</a>,
<a href=#concept-fe-checked title=concept-fe-checked>checkedness</a>, and <a href=#concept-input-checked-dirty-flag title=concept-input-checked-dirty-flag>dirty checkedness
flag</a> must be propagated to the clone when it is created.</p>

</div>

<p>The <code title=attr-fae-form><a href=#attr-fae-form>form</a></code> attribute is used to
Expand Down
14 changes: 9 additions & 5 deletions source
Expand Up @@ -35520,11 +35520,8 @@ interface <dfn>HTMLFormElement</dfn> : <span>HTMLElement</span> {
title="attr-input-type">type</code> attribute's current state
defines one.</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
<p>Each <code>input</code> element is either <dfn
title="concept-input-mutable"><i>mutable</i></dfn> or <dfn
title="concept-input-immutable"><i>immutable</i></dfn>. Unless
otherwise specified, an <code>input</code> element is always <i
title="concept-input-mutable">mutable</i>. Unless otherwise
Expand All @@ -35550,6 +35547,13 @@ interface <dfn>HTMLFormElement</dfn> : <span>HTMLElement</span> {
<code>input</code> element <i
title="concept-input-immutable">immutable</i>.</p>

<p>When an <code>input</code> element is cloned, the element's <span
title="concept-fe-value">value</span>, <span
title="concept-input-value-dirty-flag">dirty value flag</span>,
<span title="concept-fe-checked">checkedness</span>, and <span
title="concept-input-checked-dirty-flag">dirty checkedness
flag</span> must be propagated to the clone when it is created.</p>

</div>

<p>The <code title="attr-fae-form">form</code> attribute is used to
Expand Down

0 comments on commit 72157d1

Please sign in to comment.