Skip to content

Commit

Permalink
[giow] (2) disabled form controls don't see 'click' events. (credit: op)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@2361 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 22, 2008
1 parent 7f968a9 commit 66fb3a9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
12 changes: 10 additions & 2 deletions index
Expand Up @@ -26759,10 +26759,14 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href=#htmleleme

<p>The <dfn id=attr-option-disabled title=attr-option-disabled><code>disabled</code></dfn>
attribute is a <a href=#boolean-attribute>boolean attribute</a>. An
<code><a href=#the-option-element>option</a></code> element is <dfn id=concept-option-disabled title=concept-option-disabled>disabled</dfn> if its <code title=attr-option-disabled><a href=#attr-option-disabled>disabled</a></code> is present or if it is
a child of an <code><a href=#the-optgroup-element>optgroup</a></code> element whose <code title=attr-optgroup-disabled><a href=#attr-optgroup-disabled>disabled</a></code> attribute is
<code><a href=#the-option-element>option</a></code> element is <dfn id=concept-option-disabled title=concept-option-disabled>disabled</dfn> if its <code title=attr-option-disabled><a href=#attr-option-disabled>disabled</a></code> attribute is present or
if it is a child of an <code><a href=#the-optgroup-element>optgroup</a></code> element whose <code title=attr-optgroup-disabled><a href=#attr-optgroup-disabled>disabled</a></code> attribute is
present.</p>

<p>An <code><a href=#the-option-element>option</a></code> element that is <a href=#attr-option-disabled title=attr-option-disabled>disabled</a> must prevent any <code title=event-click>click</code> events that are <a href=#queue-a-task title="queue
a task">queued</a> on the <a href=#user-interaction-task-source>user interaction task
source</a> from being dispatched on the element.</p>

<p>The <dfn id=attr-option-label title=attr-option-label><code>label</code></dfn>
attribute provides a label for element. The <dfn id=concept-option-label title=concept-option-label>label</dfn> of an <code><a href=#the-option-element>option</a></code>
element is the value of the <code title=attr-option-label><a href=#attr-option-label>label</a></code> attribute, if there is one,
Expand Down Expand Up @@ -27262,6 +27266,10 @@ interface <dfn id=htmloptionelement>HTMLOptionElement</dfn> : <a href=#htmleleme
whose <code title=attr-fieldset-disabled><a href=#attr-fieldset-disabled>disabled</a></code> attribute
is set.</p>

<p>A form control that is <a href=#concept-fe-disabled title=concept-fe-disabled>disabled</a> must prevent any <code title=event-click>click</code> events that are <a href=#queue-a-task title="queue
a task">queued</a> on the <a href=#user-interaction-task-source>user interaction task
source</a> from being dispatched on the element.</p>

<p><strong>Constraint validation:</strong> If an element is <a href=#concept-fe-disabled title=concept-fe-disabled>disabled</a>, it is <a href=#barred-from-constraint-validation>barred from
constraint validation</a>.</p>

Expand Down
16 changes: 14 additions & 2 deletions source
Expand Up @@ -30004,11 +30004,17 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
attribute is a <span>boolean attribute</span>. An
<code>option</code> element is <dfn
title="concept-option-disabled">disabled</dfn> if its <code
title="attr-option-disabled">disabled</code> is present or if it is
a child of an <code>optgroup</code> element whose <code
title="attr-option-disabled">disabled</code> attribute is present or
if it is a child of an <code>optgroup</code> element whose <code
title="attr-optgroup-disabled">disabled</code> attribute is
present.</p>

<p>An <code>option</code> element that is <span
title="attr-option-disabled">disabled</span> must prevent any <code
title="event-click">click</code> events that are <span title="queue
a task">queued</span> on the <span>user interaction task
source</span> from being dispatched on the element.</p>

<p>The <dfn title="attr-option-label"><code>label</code></dfn>
attribute provides a label for element. The <dfn
title="concept-option-label">label</dfn> of an <code>option</code>
Expand Down Expand Up @@ -30633,6 +30639,12 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
whose <code title="attr-fieldset-disabled">disabled</code> attribute
is set.</p>

<p>A form control that is <span
title="concept-fe-disabled">disabled</span> must prevent any <code
title="event-click">click</code> events that are <span title="queue
a task">queued</span> on the <span>user interaction task
source</span> from being dispatched on the element.</p>

<p><strong>Constraint validation:</strong> If an element is <span
title="concept-fe-disabled">disabled</span>, it is <span>barred from
constraint validation</span>.</p>
Expand Down

0 comments on commit 66fb3a9

Please sign in to comment.