[html5] r8050 - [giow] (3) Make .click() on certain elements not work if the document isn't acti [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Jul 11 18:53:34 PDT 2013


Author: ianh
Date: 2013-07-11 18:53:33 -0700 (Thu, 11 Jul 2013)
New Revision: 8050

Modified:
   complete.html
   index
   source
Log:
[giow] (3) Make .click() on certain elements not work if the document isn't active.
Affected topics: HTML

Modified: complete.html
===================================================================
--- complete.html	2013-07-10 00:24:56 UTC (rev 8049)
+++ complete.html	2013-07-12 01:53:33 UTC (rev 8050)
@@ -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 — Last Updated 10 July 2013</h2>
+    <h2 class="no-num no-toc">Living Standard — 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>
@@ -19350,10 +19350,9 @@
 
   <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>
 
@@ -39658,8 +39657,7 @@
   <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>
 
@@ -49275,6 +49273,7 @@
 
   <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>
 
@@ -49435,18 +49434,18 @@
   <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>
 
@@ -49586,7 +49585,7 @@
   <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
@@ -50811,13 +50810,13 @@
 
   <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>
 
@@ -50833,6 +50832,9 @@
 
     <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>

Modified: index
===================================================================
--- index	2013-07-10 00:24:56 UTC (rev 8049)
+++ index	2013-07-12 01:53:33 UTC (rev 8050)
@@ -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 — Last Updated 10 July 2013</h2>
+    <h2 class="no-num no-toc">Living Standard — 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>
@@ -19350,10 +19350,9 @@
 
   <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>
 
@@ -39658,8 +39657,7 @@
   <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>
 
@@ -49275,6 +49273,7 @@
 
   <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>
 
@@ -49435,18 +49434,18 @@
   <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>
 
@@ -49586,7 +49585,7 @@
   <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
@@ -50811,13 +50810,13 @@
 
   <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>
 
@@ -50833,6 +50832,9 @@
 
     <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>

Modified: source
===================================================================
--- source	2013-07-10 00:24:56 UTC (rev 8049)
+++ source	2013-07-12 01:53:33 UTC (rev 8050)
@@ -20177,10 +20177,9 @@
 
   <ol><!-- c.f. <area>'s similar section -->
 
-   <li><p>If the <code>a</code> element's <code>Document</code> is not in a <span>browsing
-   context</span>, then abort these steps.</p></li>
+   <li><p>If the <code>a</code> element's <code>Document</code> is not <span>fully active</span>, then abort these steps.</p></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>
 
@@ -43277,8 +43276,7 @@
 
   <ol><!-- c.f. <a>'s similar section -->
 
-   <li><p>If the <code>a</code> element's <code>Document</code> is not in a <span>browsing
-   context</span>, then abort these steps.</p></li>
+   <li><p>If the <code>area</code> element's <code>Document</code> is not <span>fully active</span>, then abort these steps.</p></li>
 
    <li>
 
@@ -53984,6 +53982,7 @@
 
   <p>If the element is <i title="concept-fe-mutable">mutable</i>, then the element's
   <span>activation behavior</span> is as follows: if the element has a <span>form owner</span>,
+  and the element's <code>Document</code> is <span>fully active</span>,
   <span title="concept-form-submit">submit</span> the <span>form owner</span> from the
   <code>input</code> element; otherwise, do nothing.</p>
 
@@ -54175,7 +54174,7 @@
   <code title="attr-input-src">src</code> attribute; if the element is <i
   title="concept-fe-mutable">mutable</i>, the user agent should allow the user to select this <span
   title="concept-input-type-image-coordinate">coordinate</span>, and the element's <span>activation
-  behavior</span> is as follows: if the element has a <span>form owner</span>, take the user's
+  behavior</span> is as follows: if the element has a <span>form owner</span>, and the element's <code>Document</code> is <span>fully active</span>, take the user's
   selected <span title="concept-input-type-image-coordinate">coordinate</span>, and <span
   title="concept-form-submit">submit</span> the <code>input</code> element's <span>form owner</span>
   from the <code>input</code> element. If the user activates the control without explicitly
@@ -54184,13 +54183,13 @@
   <p>Otherwise, the element <span>represents</span> a submit button whose label is given by the
   value of the <code title="attr-input-alt">alt</code> attribute; if the element is <i
   title="concept-fe-mutable">mutable</i>, then the element's <span>activation behavior</span> is as
-  follows: if the element has a <span>form owner</span>, set the <span
+  follows: if the element has a <span>form owner</span>, and the element's <code>Document</code> is <span>fully active</span>, set the <span
   title="concept-input-type-image-coordinate">selected coordinate</span> to (0,0), and <span
   title="concept-form-submit">submit</span> the <code>input</code> element's <span>form owner</span>
   from the <code>input</code> element.</p>
 
   <p>In either case, if the element is <i title="concept-fe-mutable">mutable</i> but has no
-  <span>form owner</span>, then its <span>activation behavior</span> must be to do nothing. If the
+  <span>form owner</span> or the element's <code>Document</code> is not <span>fully active</span>, then its <span>activation behavior</span> must be to do nothing. If the
   element is not <i title="concept-fe-mutable">mutable</i>, it has no <span>activation
   behavior</span>.</p>
 
@@ -54357,7 +54356,7 @@
   <div class="impl">
 
   <p>If the element is <i title="concept-fe-mutable">mutable</i>, then the element's
-  <span>activation behavior</span>, if the element has a <span>form owner</span>, is to <span
+  <span>activation behavior</span>, if the element has a <span>form owner</span> and the element's <code>Document</code> is <span>fully active</span>, is to <span
   title="concept-form-reset">reset</span> the <span>form owner</span>; otherwise, it is to do
   nothing.</p>
 
@@ -55765,13 +55764,13 @@
 
    <dt> <dfn title="attr-button-type-submit-state">Submit Button</dfn> </dt>
 
-   <dd><p>If the element has a <span>form owner</span>, the element
+   <dd><p>If the element has a <span>form owner</span> and the element's <code>Document</code> is <span>fully active</span>, the element
    must <span title="concept-form-submit">submit</span> the <span>form
    owner</span> from the <code>button</code> element.</p></dd>
 
    <dt> <dfn title="attr-button-type-reset-state">Reset Button</dfn> </dt>
 
-   <dd><p>If the element has a <span>form owner</span>, the element
+   <dd><p>If the element has a <span>form owner</span> and the element's <code>Document</code> is <span>fully active</span>, the element
    must <span title="concept-form-reset">reset</span> the <span>form
    owner</span>.</p></dd>
 
@@ -55789,6 +55788,9 @@
 
      <li><p>If the <code>button</code> is not <span>being rendered</span>, abort these
      steps.</p></li>
+
+     <li><p>If the <code>button</code> element's <code>Document</code> is not <span>fully active</span>, abort these
+     steps.</p></li>
     
      <li><p>Let <var title="">menu</var> be the element's <span>designated pop-up menu</span>, if
      any. If there isn't one, then abort these steps.</p></li>




More information about the Commit-Watchers mailing list