Permalink
Browse files

[iw] (2) Support .indeterminate from IE/Safari. Hopefully this is an …

…accurate specification for it. Let me know if it isn't.

git-svn-id: http://svn.whatwg.org/webapps@2633 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent 6bb5d27 commit c1880dfa43239abefbc76ac716f9dfc5bb561cd6 @Hixie Hixie committed Dec 30, 2008
Showing with 56 additions and 19 deletions.
  1. +24 −9 index
  2. +32 −10 source
View
33 index
@@ -23962,6 +23962,7 @@ interface <dfn id=htmlformelement>HTMLFormElement</dfn> : <a href=#htmlelement>H
attribute boolean <a href=#dom-fe-disabled title=dom-fe-disabled>disabled</a>;
attribute DOMString <a href=#dom-fs-enctype title=dom-fs-enctype>enctype</a>;
readonly attribute <a href=#htmlformelement>HTMLFormElement</a> <a href=#dom-fae-form title=dom-fae-form>form</a>;
+ attribute boolean <a href=#dom-input-indeterminate title=dom-input-indeterminate>indeterminate</a>;
readonly attribute <a href=#htmlelement>HTMLElement</a> <a href=#dom-input-list title=dom-input-list>list</a>;
attribute DOMString <a href=#dom-input-max title=dom-input-max>max</a>;
attribute long <a href=#dom-input-maxlength title=dom-input-maxLength>maxLength</a>;
@@ -25020,6 +25021,11 @@ interface <dfn id=htmlformelement>HTMLFormElement</dfn> : <a href=#htmlelement>H
submitted. The <code title=attr-fe-autofocus><a href=#attr-fe-autofocus>autofocus</a></code>
attribute controls focus.</p>
+ <p>The <dfn id=dom-input-indeterminate title=dom-input-indeterminate><code>indeterminate</code></dfn> DOM
+ attribute must initially be set to false. On getting, it must return
+ the last value it was set to. On setting, it must be set to the new
+ value. It has no effect except for changing the appearance of <a href=#checkbox-state title=attr-input-type-checkbox>checkbox</a> controls.</p>
+
<p>The <dfn id=dom-input-accept title=dom-input-accept><code>accept</code></dfn>, <dfn id=dom-input-alt title=dom-input-alt><code>alt</code></dfn>, <dfn id=dom-input-autocomplete title=dom-input-autocomplete><code>autocomplete</code></dfn>, <dfn id=dom-input-max title=dom-input-max><code>max</code></dfn>, <dfn id=dom-input-min title=dom-input-min><code>min</code></dfn>, <dfn id=dom-input-multiple title=dom-input-multiple><code>multiple</code></dfn>, <dfn id=dom-input-pattern title=dom-input-pattern><code>pattern</code></dfn>, <dfn id=dom-input-placeholder title=dom-input-placeholder><code>placeholder</code></dfn>, <dfn id=dom-input-required title=dom-input-required><code>required</code></dfn>, <dfn id=dom-input-size title=dom-input-size><code>size</code></dfn>, <dfn id=dom-input-src title=dom-input-src><code>src</code></dfn>, <dfn id=dom-input-step title=dom-input-step><code>step</code></dfn>, and <dfn id=dom-input-type title=dom-input-type><code>type</code></dfn> DOM attributes must
<a href=#reflect>reflect</a> the respective content attributes of the same
name. The <dfn id=dom-input-maxlength title=dom-input-maxLength><code>maxLength</code></dfn> DOM
@@ -26523,19 +26529,28 @@ interface <dfn id=htmlformelement>HTMLFormElement</dfn> : <a href=#htmlelement>H
that represents the element's <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> state. If the
element's <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> state
is true, the control represents a positive selection, and if it is
- false, a negative selection.</p>
+ false, a negative selection. If the element's <code title=dom-input-indeterminate><a href=#dom-input-indeterminate>indeterminate</a></code> DOM attribute
+ is set to true, then the control's selection should be obscured as
+ if the control was in a third, indeterminate, state.</p>
+
+ <p class=note>The control is never a true tri-state control, even
+ if the element's <code title=dom-input-indeterminate><a href=#dom-input-indeterminate>indeterminate</a></code> DOM attribute
+ is set to true. The <code title=dom-input-indeterminate><a href=#dom-input-indeterminate>indeterminate</a></code> DOM attribute
+ only gives the appearance of a third state.</p>
<p>If the element is <i title=concept-input-mutable><a href=#concept-input-mutable>mutable</a></i>,
then: The <a href=#pre-click-activation-steps>pre-click activation steps</a> consist of setting
the element's <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> to
- its opposite value (i.e. true if it is false, false if it is
- true). The <a href=#canceled-activation-steps>canceled activation steps</a> consist of setting
- the <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> back to the
- value it had before the <a href=#pre-click-activation-steps>pre-click activation steps</a> were
- run. The <a href=#activation-behavior>activation behavior</a> is to <a href=#fire-a-simple-event>fire a simple
- event</a> called <code title=event-change>change</code> at the
- element, then <a href=#broadcast-formchange-events>broadcast <code title=event-formchange>formchange</code> events</a> at the
- element's <a href=#form-owner>form owner</a>.</p>
+ its opposite value (i.e. true if it is false, false if it is true),
+ and of setting the element's <code title=dom-input-indeterminate><a href=#dom-input-indeterminate>indeterminate</a></code> DOM attribute
+ to false. The <a href=#canceled-activation-steps>canceled activation steps</a> consist of
+ setting the <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> and
+ the element's <code title=dom-input-indeterminate><a href=#dom-input-indeterminate>indeterminate</a></code> DOM attribute
+ back to the values they had before the <a href=#pre-click-activation-steps>pre-click activation
+ steps</a> were run. The <a href=#activation-behavior>activation behavior</a> is to
+ <a href=#fire-a-simple-event>fire a simple event</a> called <code title=event-change>change</code> at the element, then
+ <a href=#broadcast-formchange-events>broadcast <code title=event-formchange>formchange</code>
+ events</a> at the element's <a href=#form-owner>form owner</a>.</p>
<p><strong>Constraint validation:</strong> If the element is <i title=concept-input-required><a href=#concept-input-required>required</a></i> and its <a href=#concept-fe-checked title=concept-fe-checked>checkedness</a> is false, then the
element is <a href=#suffering-from-being-missing>suffering from being missing</a>.</p>
View
42 source
@@ -26664,6 +26664,7 @@ interface <dfn>HTMLFormElement</dfn> : <span>HTMLElement</span> {
attribute boolean <span title="dom-fe-disabled">disabled</span>;
attribute DOMString <span title="dom-fs-enctype">enctype</span>;
readonly attribute <span>HTMLFormElement</span> <span title="dom-fae-form">form</span>;
+ attribute boolean <span title="dom-input-indeterminate">indeterminate</span>;
readonly attribute <span>HTMLElement</span> <span title="dom-input-list">list</span>;
attribute DOMString <span title="dom-input-max">max</span>;
attribute long <span title="dom-input-maxLength">maxLength</span>;
@@ -27857,6 +27858,13 @@ interface <dfn>HTMLFormElement</dfn> : <span>HTMLElement</span> {
submitted. The <code title="attr-fe-autofocus">autofocus</code>
attribute controls focus.</p>
+ <p>The <dfn
+ title="dom-input-indeterminate"><code>indeterminate</code></dfn> DOM
+ attribute must initially be set to false. On getting, it must return
+ the last value it was set to. On setting, it must be set to the new
+ value. It has no effect except for changing the appearance of <span
+ title="attr-input-type-checkbox">checkbox</span> controls.</p>
+
<p>The <dfn title="dom-input-accept"><code>accept</code></dfn>, <dfn
title="dom-input-alt"><code>alt</code></dfn>, <dfn
title="dom-input-autocomplete"><code>autocomplete</code></dfn>, <dfn
@@ -29575,20 +29583,34 @@ interface <dfn>HTMLFormElement</dfn> : <span>HTMLElement</span> {
title="concept-fe-checked">checkedness</span> state. If the
element's <span title="concept-fe-checked">checkedness</span> state
is true, the control represents a positive selection, and if it is
- false, a negative selection.</p>
+ false, a negative selection. If the element's <code
+ title="dom-input-indeterminate">indeterminate</code> DOM attribute
+ is set to true, then the control's selection should be obscured as
+ if the control was in a third, indeterminate, state.</p>
+
+ <p class="note">The control is never a true tri-state control, even
+ if the element's <code
+ title="dom-input-indeterminate">indeterminate</code> DOM attribute
+ is set to true. The <code
+ title="dom-input-indeterminate">indeterminate</code> DOM attribute
+ only gives the appearance of a third state.</p>
<p>If the element is <i title="concept-input-mutable">mutable</i>,
then: The <span>pre-click activation steps</span> consist of setting
the element's <span title="concept-fe-checked">checkedness</span> to
- its opposite value (i.e. true if it is false, false if it is
- true). The <span>canceled activation steps</span> consist of setting
- the <span title="concept-fe-checked">checkedness</span> back to the
- value it had before the <span>pre-click activation steps</span> were
- run. The <span>activation behavior</span> is to <span>fire a simple
- event</span> called <code title="event-change">change</code> at the
- element, then <span>broadcast <code
- title="event-formchange">formchange</code> events</span> at the
- element's <span>form owner</span>.</p>
+ its opposite value (i.e. true if it is false, false if it is true),
+ and of setting the element's <code
+ title="dom-input-indeterminate">indeterminate</code> DOM attribute
+ to false. The <span>canceled activation steps</span> consist of
+ setting the <span title="concept-fe-checked">checkedness</span> and
+ the element's <code
+ title="dom-input-indeterminate">indeterminate</code> DOM attribute
+ back to the values they had before the <span>pre-click activation
+ steps</span> were run. The <span>activation behavior</span> is to
+ <span>fire a simple event</span> called <code
+ title="event-change">change</code> at the element, then
+ <span>broadcast <code title="event-formchange">formchange</code>
+ events</span> at the element's <span>form owner</span>.</p>
<p><strong>Constraint validation:</strong> If the element is <i
title="concept-input-required">required</i> and its <span

0 comments on commit c1880df

Please sign in to comment.