Skip to content

Commit

Permalink
[giow] (3) Make .click() on certain elements not work if the document…
Browse files Browse the repository at this point in the history
… isn't active.

Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@8050 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 12, 2013
1 parent 517eda6 commit edb765e
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 35 deletions.
26 changes: 14 additions & 12 deletions complete.html
Expand Up @@ -256,7 +256,7 @@

<header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 10 July 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 12 July 2013</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -19350,10 +19350,9 @@ <h4 id=the-a-element><span class=secno>4.6.1 </span>The <dfn><code>a</code></dfn

<p>The <a href=#activation-behavior>activation behavior</a> of <code><a href=#the-a-element>a</a></code> elements that create <a href=#hyperlink title=hyperlink>hyperlinks</a> is to run the following steps:</p>

<ol><!-- c.f. <area>'s similar section --><li><p>If the <code><a href=#the-a-element>a</a></code> element's <code><a href=#document>Document</a></code> is not in a <a href=#browsing-context>browsing
context</a>, then abort these steps.</li>
<ol><!-- c.f. <area>'s similar section --><li><p>If the <code><a href=#the-a-element>a</a></code> element's <code><a href=#document>Document</a></code> is not <a href=#fully-active>fully active</a>, then abort these steps.</li>
<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2033 -->
<!-- (didn't test if the bc has to be active) -->
<!-- http://www.hixie.ch/tests/adhoc/html/navigation/iframe/002.html -->

<li>

Expand Down Expand Up @@ -39658,8 +39657,7 @@ <h4 id=the-area-element><span class=secno>4.8.13 </span>The <dfn><code>area</cod
<p>The <a href=#activation-behavior>activation behavior</a> of <code><a href=#the-area-element>area</a></code> elements is to run the following
steps:</p>

<ol><!-- c.f. <a>'s similar section --><li><p>If the <code><a href=#the-a-element>a</a></code> element's <code><a href=#document>Document</a></code> is not in a <a href=#browsing-context>browsing
context</a>, then abort these steps.</li>
<ol><!-- c.f. <a>'s similar section --><li><p>If the <code><a href=#the-area-element>area</a></code> element's <code><a href=#document>Document</a></code> is not <a href=#fully-active>fully active</a>, then abort these steps.</li>

<li>

Expand Down Expand Up @@ -49275,6 +49273,7 @@ <h6 id="submit-button-state-(type=submit)"><span class=secno>4.10.7.1.19 </span>

<p>If the element is <i title=concept-fe-mutable><a href=#concept-fe-mutable>mutable</a></i>, then the element's
<a href=#activation-behavior>activation behavior</a> is as follows: if the element has a <a href=#form-owner>form owner</a>,
and the element's <code><a href=#document>Document</a></code> is <a href=#fully-active>fully active</a>,
<a href=#concept-form-submit title=concept-form-submit>submit</a> the <a href=#form-owner>form owner</a> from the
<code><a href=#the-input-element>input</a></code> element; otherwise, do nothing.</p>

Expand Down Expand Up @@ -49435,18 +49434,18 @@ <h6 id="image-button-state-(type=image)"><span class=secno>4.10.7.1.20 </span><d
<hr><p>If the <code title=attr-input-src><a href=#attr-input-src>src</a></code> attribute is set, and the image is <i title=input-img-available><a href=#input-img-available>available</a></i> and the user agent is configured to display that image,
then: The element <a href=#represents>represents</a> a control for selecting a <a href=#concept-input-type-image-coordinate title=concept-input-type-image-coordinate>coordinate</a> from the image specified by the
<code title=attr-input-src><a href=#attr-input-src>src</a></code> attribute; if the element is <i title=concept-fe-mutable><a href=#concept-fe-mutable>mutable</a></i>, the user agent should allow the user to select this <a href=#concept-input-type-image-coordinate title=concept-input-type-image-coordinate>coordinate</a>, and the element's <a href=#activation-behavior>activation
behavior</a> is as follows: if the element has a <a href=#form-owner>form owner</a>, take the user's
behavior</a> is as follows: if the element has a <a href=#form-owner>form owner</a>, and the element's <code><a href=#document>Document</a></code> is <a href=#fully-active>fully active</a>, take the user's
selected <a href=#concept-input-type-image-coordinate title=concept-input-type-image-coordinate>coordinate</a>, and <a href=#concept-form-submit title=concept-form-submit>submit</a> the <code><a href=#the-input-element>input</a></code> element's <a href=#form-owner>form owner</a>
from the <code><a href=#the-input-element>input</a></code> element. If the user activates the control without explicitly
selecting a coordinate, then the coordinate (0,0) must be assumed.</p>

<p>Otherwise, the element <a href=#represents>represents</a> a submit button whose label is given by the
value of the <code title=attr-input-alt><a href=#attr-input-alt>alt</a></code> attribute; if the element is <i title=concept-fe-mutable><a href=#concept-fe-mutable>mutable</a></i>, then the element's <a href=#activation-behavior>activation behavior</a> is as
follows: if the element has a <a href=#form-owner>form owner</a>, set the <a href=#concept-input-type-image-coordinate title=concept-input-type-image-coordinate>selected coordinate</a> to (0,0), and <a href=#concept-form-submit title=concept-form-submit>submit</a> the <code><a href=#the-input-element>input</a></code> element's <a href=#form-owner>form owner</a>
follows: if the element has a <a href=#form-owner>form owner</a>, and the element's <code><a href=#document>Document</a></code> is <a href=#fully-active>fully active</a>, set the <a href=#concept-input-type-image-coordinate title=concept-input-type-image-coordinate>selected coordinate</a> to (0,0), and <a href=#concept-form-submit title=concept-form-submit>submit</a> the <code><a href=#the-input-element>input</a></code> element's <a href=#form-owner>form owner</a>
from the <code><a href=#the-input-element>input</a></code> element.</p>

<p>In either case, if the element is <i title=concept-fe-mutable><a href=#concept-fe-mutable>mutable</a></i> but has no
<a href=#form-owner>form owner</a>, then its <a href=#activation-behavior>activation behavior</a> must be to do nothing. If the
<a href=#form-owner>form owner</a> or the element's <code><a href=#document>Document</a></code> is not <a href=#fully-active>fully active</a>, then its <a href=#activation-behavior>activation behavior</a> must be to do nothing. If the
element is not <i title=concept-fe-mutable><a href=#concept-fe-mutable>mutable</a></i>, it has no <a href=#activation-behavior>activation
behavior</a>.</p>

Expand Down Expand Up @@ -49586,7 +49585,7 @@ <h6 id="reset-button-state-(type=reset)"><span class=secno>4.10.7.1.21 </span><d
<div class=impl>

<p>If the element is <i title=concept-fe-mutable><a href=#concept-fe-mutable>mutable</a></i>, then the element's
<a href=#activation-behavior>activation behavior</a>, if the element has a <a href=#form-owner>form owner</a>, is to <a href=#concept-form-reset title=concept-form-reset>reset</a> the <a href=#form-owner>form owner</a>; otherwise, it is to do
<a href=#activation-behavior>activation behavior</a>, if the element has a <a href=#form-owner>form owner</a> and the element's <code><a href=#document>Document</a></code> is <a href=#fully-active>fully active</a>, is to <a href=#concept-form-reset title=concept-form-reset>reset</a> the <a href=#form-owner>form owner</a>; otherwise, it is to do
nothing.</p>

<p>If the element is not <i title=concept-fe-mutable><a href=#concept-fe-mutable>mutable</a></i>, it has no <a href=#activation-behavior>activation
Expand Down Expand Up @@ -50811,13 +50810,13 @@ <h4 id=the-button-element><span class=secno>4.10.8 </span>The <dfn><code>button<

<dl><dt> <dfn id=attr-button-type-submit-state title=attr-button-type-submit-state>Submit Button</dfn> </dt>

<dd><p>If the element has a <a href=#form-owner>form owner</a>, the element
<dd><p>If the element has a <a href=#form-owner>form owner</a> and the element's <code><a href=#document>Document</a></code> is <a href=#fully-active>fully active</a>, the element
must <a href=#concept-form-submit title=concept-form-submit>submit</a> the <a href=#form-owner>form
owner</a> from the <code><a href=#the-button-element>button</a></code> element.</dd>

<dt> <dfn id=attr-button-type-reset-state title=attr-button-type-reset-state>Reset Button</dfn> </dt>

<dd><p>If the element has a <a href=#form-owner>form owner</a>, the element
<dd><p>If the element has a <a href=#form-owner>form owner</a> and the element's <code><a href=#document>Document</a></code> is <a href=#fully-active>fully active</a>, the element
must <a href=#concept-form-reset title=concept-form-reset>reset</a> the <a href=#form-owner>form
owner</a>.</dd>

Expand All @@ -50833,6 +50832,9 @@ <h4 id=the-button-element><span class=secno>4.10.8 </span>The <dfn><code>button<

<ol><li><p>If the <code><a href=#the-button-element>button</a></code> is not <a href=#being-rendered>being rendered</a>, abort these
steps.</li>

<li><p>If the <code><a href=#the-button-element>button</a></code> element's <code><a href=#document>Document</a></code> is not <a href=#fully-active>fully active</a>, abort these
steps.</li>

<li><p>Let <var title="">menu</var> be the element's <a href=#designated-pop-up-menu>designated pop-up menu</a>, if
any. If there isn't one, then abort these steps.</li>
Expand Down
26 changes: 14 additions & 12 deletions index
Expand Up @@ -256,7 +256,7 @@

<header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 10 July 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 12 July 2013</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -19350,10 +19350,9 @@ included with Exhibit B.

<p>The <a href=#activation-behavior>activation behavior</a> of <code><a href=#the-a-element>a</a></code> elements that create <a href=#hyperlink title=hyperlink>hyperlinks</a> is to run the following steps:</p>

<ol><!-- c.f. <area>'s similar section --><li><p>If the <code><a href=#the-a-element>a</a></code> element's <code><a href=#document>Document</a></code> is not in a <a href=#browsing-context>browsing
context</a>, then abort these steps.</li>
<ol><!-- c.f. <area>'s similar section --><li><p>If the <code><a href=#the-a-element>a</a></code> element's <code><a href=#document>Document</a></code> is not <a href=#fully-active>fully active</a>, then abort these steps.</li>
<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2033 -->
<!-- (didn't test if the bc has to be active) -->
<!-- http://www.hixie.ch/tests/adhoc/html/navigation/iframe/002.html -->

<li>

Expand Down Expand Up @@ -39658,8 +39657,7 @@ function AddCloud(data, x, y) { ... }</pre>
<p>The <a href=#activation-behavior>activation behavior</a> of <code><a href=#the-area-element>area</a></code> elements is to run the following
steps:</p>

<ol><!-- c.f. <a>'s similar section --><li><p>If the <code><a href=#the-a-element>a</a></code> element's <code><a href=#document>Document</a></code> is not in a <a href=#browsing-context>browsing
context</a>, then abort these steps.</li>
<ol><!-- c.f. <a>'s similar section --><li><p>If the <code><a href=#the-area-element>area</a></code> element's <code><a href=#document>Document</a></code> is not <a href=#fully-active>fully active</a>, then abort these steps.</li>

<li>

Expand Down Expand Up @@ -49275,6 +49273,7 @@ ldh-str = &lt; as defined in <a href=http://tools.ietf.org/html/rfc1034#se

<p>If the element is <i title=concept-fe-mutable><a href=#concept-fe-mutable>mutable</a></i>, then the element's
<a href=#activation-behavior>activation behavior</a> is as follows: if the element has a <a href=#form-owner>form owner</a>,
and the element's <code><a href=#document>Document</a></code> is <a href=#fully-active>fully active</a>,
<a href=#concept-form-submit title=concept-form-submit>submit</a> the <a href=#form-owner>form owner</a> from the
<code><a href=#the-input-element>input</a></code> element; otherwise, do nothing.</p>

Expand Down Expand Up @@ -49435,18 +49434,18 @@ ldh-str = &lt; as defined in <a href=http://tools.ietf.org/html/rfc1034#se
<hr><p>If the <code title=attr-input-src><a href=#attr-input-src>src</a></code> attribute is set, and the image is <i title=input-img-available><a href=#input-img-available>available</a></i> and the user agent is configured to display that image,
then: The element <a href=#represents>represents</a> a control for selecting a <a href=#concept-input-type-image-coordinate title=concept-input-type-image-coordinate>coordinate</a> from the image specified by the
<code title=attr-input-src><a href=#attr-input-src>src</a></code> attribute; if the element is <i title=concept-fe-mutable><a href=#concept-fe-mutable>mutable</a></i>, the user agent should allow the user to select this <a href=#concept-input-type-image-coordinate title=concept-input-type-image-coordinate>coordinate</a>, and the element's <a href=#activation-behavior>activation
behavior</a> is as follows: if the element has a <a href=#form-owner>form owner</a>, take the user's
behavior</a> is as follows: if the element has a <a href=#form-owner>form owner</a>, and the element's <code><a href=#document>Document</a></code> is <a href=#fully-active>fully active</a>, take the user's
selected <a href=#concept-input-type-image-coordinate title=concept-input-type-image-coordinate>coordinate</a>, and <a href=#concept-form-submit title=concept-form-submit>submit</a> the <code><a href=#the-input-element>input</a></code> element's <a href=#form-owner>form owner</a>
from the <code><a href=#the-input-element>input</a></code> element. If the user activates the control without explicitly
selecting a coordinate, then the coordinate (0,0) must be assumed.</p>

<p>Otherwise, the element <a href=#represents>represents</a> a submit button whose label is given by the
value of the <code title=attr-input-alt><a href=#attr-input-alt>alt</a></code> attribute; if the element is <i title=concept-fe-mutable><a href=#concept-fe-mutable>mutable</a></i>, then the element's <a href=#activation-behavior>activation behavior</a> is as
follows: if the element has a <a href=#form-owner>form owner</a>, set the <a href=#concept-input-type-image-coordinate title=concept-input-type-image-coordinate>selected coordinate</a> to (0,0), and <a href=#concept-form-submit title=concept-form-submit>submit</a> the <code><a href=#the-input-element>input</a></code> element's <a href=#form-owner>form owner</a>
follows: if the element has a <a href=#form-owner>form owner</a>, and the element's <code><a href=#document>Document</a></code> is <a href=#fully-active>fully active</a>, set the <a href=#concept-input-type-image-coordinate title=concept-input-type-image-coordinate>selected coordinate</a> to (0,0), and <a href=#concept-form-submit title=concept-form-submit>submit</a> the <code><a href=#the-input-element>input</a></code> element's <a href=#form-owner>form owner</a>
from the <code><a href=#the-input-element>input</a></code> element.</p>

<p>In either case, if the element is <i title=concept-fe-mutable><a href=#concept-fe-mutable>mutable</a></i> but has no
<a href=#form-owner>form owner</a>, then its <a href=#activation-behavior>activation behavior</a> must be to do nothing. If the
<a href=#form-owner>form owner</a> or the element's <code><a href=#document>Document</a></code> is not <a href=#fully-active>fully active</a>, then its <a href=#activation-behavior>activation behavior</a> must be to do nothing. If the
element is not <i title=concept-fe-mutable><a href=#concept-fe-mutable>mutable</a></i>, it has no <a href=#activation-behavior>activation
behavior</a>.</p>

Expand Down Expand Up @@ -49586,7 +49585,7 @@ ldh-str = &lt; as defined in <a href=http://tools.ietf.org/html/rfc1034#se
<div class=impl>

<p>If the element is <i title=concept-fe-mutable><a href=#concept-fe-mutable>mutable</a></i>, then the element's
<a href=#activation-behavior>activation behavior</a>, if the element has a <a href=#form-owner>form owner</a>, is to <a href=#concept-form-reset title=concept-form-reset>reset</a> the <a href=#form-owner>form owner</a>; otherwise, it is to do
<a href=#activation-behavior>activation behavior</a>, if the element has a <a href=#form-owner>form owner</a> and the element's <code><a href=#document>Document</a></code> is <a href=#fully-active>fully active</a>, is to <a href=#concept-form-reset title=concept-form-reset>reset</a> the <a href=#form-owner>form owner</a>; otherwise, it is to do
nothing.</p>

<p>If the element is not <i title=concept-fe-mutable><a href=#concept-fe-mutable>mutable</a></i>, it has no <a href=#activation-behavior>activation
Expand Down Expand Up @@ -50811,13 +50810,13 @@ You cannot submit this form when the field is incorrect.</samp></pre>

<dl><dt> <dfn id=attr-button-type-submit-state title=attr-button-type-submit-state>Submit Button</dfn> </dt>

<dd><p>If the element has a <a href=#form-owner>form owner</a>, the element
<dd><p>If the element has a <a href=#form-owner>form owner</a> and the element's <code><a href=#document>Document</a></code> is <a href=#fully-active>fully active</a>, the element
must <a href=#concept-form-submit title=concept-form-submit>submit</a> the <a href=#form-owner>form
owner</a> from the <code><a href=#the-button-element>button</a></code> element.</dd>

<dt> <dfn id=attr-button-type-reset-state title=attr-button-type-reset-state>Reset Button</dfn> </dt>

<dd><p>If the element has a <a href=#form-owner>form owner</a>, the element
<dd><p>If the element has a <a href=#form-owner>form owner</a> and the element's <code><a href=#document>Document</a></code> is <a href=#fully-active>fully active</a>, the element
must <a href=#concept-form-reset title=concept-form-reset>reset</a> the <a href=#form-owner>form
owner</a>.</dd>

Expand All @@ -50833,6 +50832,9 @@ You cannot submit this form when the field is incorrect.</samp></pre>

<ol><li><p>If the <code><a href=#the-button-element>button</a></code> is not <a href=#being-rendered>being rendered</a>, abort these
steps.</li>

<li><p>If the <code><a href=#the-button-element>button</a></code> element's <code><a href=#document>Document</a></code> is not <a href=#fully-active>fully active</a>, abort these
steps.</li>

<li><p>Let <var title="">menu</var> be the element's <a href=#designated-pop-up-menu>designated pop-up menu</a>, if
any. If there isn't one, then abort these steps.</li>
Expand Down

0 comments on commit edb765e

Please sign in to comment.