Skip to content
Permalink
Browse files

[] (0) WF2: Define resetting for >input> elements.

git-svn-id: http://svn.whatwg.org/webapps@2207 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Sep 17, 2008
1 parent 35b14d1 commit d58f2e71cd3eb22ea2d02d729d418c92ced0b0b0
Showing with 29 additions and 13 deletions.
  1. +15 −7 index
  2. +14 −6 source
22 index

<p>When an <code><a href="#input0">input</a></code> element's <code
title=attr-input-type><a href="#type12">type</a></code> attribute changes
state, and when the element is first created, the <dfn id=control0>control
initialization</dfn> algorithm defined for the <code
title=attr-input-type><a href="#type12">type</a></code> attribute's state
at the time must be invoked and the element's rendering and behaviour must
change accordingly.
state, and when the element is first created, the element's rendering and
behaviour must change to the new state's accordingly and the <dfn
id=control0>control initialization</dfn> algorithm defined for the <code
title=attr-input-type><a href="#type12">type</a></code> attribute's new
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>.
created, after invoking the <a href="#control0">control initialization</a>
algorithm, the <dfn id=default2>default value change</dfn> algorithm
defined for the <code title=attr-input-type><a
href="#type12">type</a></code> attribute's state at the time must be
invoked.
href="#type12">type</a></code> attribute's current state must be invoked.

<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</a> algorithm 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
is used to explicitly associate the <code><a
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')
20 source

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

0 comments on commit d58f2e7

Please sign in to comment.
You can’t perform that action at this time.