[html5] r7596 - [giow] (3) Make click() have no effect on links in non-bc'ed docs. Affected topi [...]
whatwg at whatwg.org
whatwg at whatwg.org
Wed Dec 19 12:11:41 PST 2012
Author: ianh
Date: 2012-12-19 12:11:40 -0800 (Wed, 19 Dec 2012)
New Revision: 7596
Modified:
complete.html
index
source
Log:
[giow] (3) Make click() have no effect on links in non-bc'ed docs.
Affected topics: HTML
Modified: complete.html
===================================================================
--- complete.html 2012-12-19 00:33:34 UTC (rev 7595)
+++ complete.html 2012-12-19 20:11:40 UTC (rev 7596)
@@ -20430,7 +20430,12 @@
<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><li><p>If either the <code><a href=#the-a-element>a</a></code> element has a <code title=attr-hyperlink-download><a href=#attr-hyperlink-download>download</a></code> attribute and the algorithm is not <a href=#allowed-to-show-a-popup>allowed
+ <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>
+ <!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2033 -->
+ <!-- (didn't test if the bc has to be active) -->
+
+ <li><p>If either the <code><a href=#the-a-element>a</a></code> element has a <code title=attr-hyperlink-download><a href=#attr-hyperlink-download>download</a></code> attribute and the algorithm is not <a href=#allowed-to-show-a-popup>allowed
to show a popup</a>, or the element's <code title=attr-hyperlink-target><a href=#attr-hyperlink-target>target</a></code>
attribute is present and applying <a href=#the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name>the rules for choosing a browsing context given a
browsing context name</a>, using the value of the <code title=attr-hyperlink-target><a href=#attr-hyperlink-target>target</a></code> attribute as the browsing context name, would result
@@ -40939,7 +40944,10 @@
<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><li><p>If the <code title=event-click><a href=#event-click>click</a></code> event in question is not <a href=#concept-events-trusted title=concept-events-trusted>trusted</a> (i.e. a <code title=dom-click><a href=#dom-click>click()</a></code>
+ <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>
+
+ <li><p>If the <code title=event-click><a href=#event-click>click</a></code> event in question is not <a href=#concept-events-trusted title=concept-events-trusted>trusted</a> (i.e. a <code title=dom-click><a href=#dom-click>click()</a></code>
method call was the reason for the event being dispatched), and the <code><a href=#the-area-element>area</a></code> element has
a <code title=attr-hyperlink-download><a href=#attr-hyperlink-download>download</a></code> attribute or the element's <code title=attr-hyperlink-target><a href=#attr-hyperlink-target>target</a></code> attribute is present and applying <a href=#the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name>the rules for
choosing a browsing context given a browsing context name</a>, using the value of the <code title=attr-hyperlink-target><a href=#attr-hyperlink-target>target</a></code> attribute as the browsing context name, would result
Modified: index
===================================================================
--- index 2012-12-19 00:33:34 UTC (rev 7595)
+++ index 2012-12-19 20:11:40 UTC (rev 7596)
@@ -20430,7 +20430,12 @@
<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><li><p>If either the <code><a href=#the-a-element>a</a></code> element has a <code title=attr-hyperlink-download><a href=#attr-hyperlink-download>download</a></code> attribute and the algorithm is not <a href=#allowed-to-show-a-popup>allowed
+ <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>
+ <!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2033 -->
+ <!-- (didn't test if the bc has to be active) -->
+
+ <li><p>If either the <code><a href=#the-a-element>a</a></code> element has a <code title=attr-hyperlink-download><a href=#attr-hyperlink-download>download</a></code> attribute and the algorithm is not <a href=#allowed-to-show-a-popup>allowed
to show a popup</a>, or the element's <code title=attr-hyperlink-target><a href=#attr-hyperlink-target>target</a></code>
attribute is present and applying <a href=#the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name>the rules for choosing a browsing context given a
browsing context name</a>, using the value of the <code title=attr-hyperlink-target><a href=#attr-hyperlink-target>target</a></code> attribute as the browsing context name, would result
@@ -40939,7 +40944,10 @@
<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><li><p>If the <code title=event-click><a href=#event-click>click</a></code> event in question is not <a href=#concept-events-trusted title=concept-events-trusted>trusted</a> (i.e. a <code title=dom-click><a href=#dom-click>click()</a></code>
+ <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>
+
+ <li><p>If the <code title=event-click><a href=#event-click>click</a></code> event in question is not <a href=#concept-events-trusted title=concept-events-trusted>trusted</a> (i.e. a <code title=dom-click><a href=#dom-click>click()</a></code>
method call was the reason for the event being dispatched), and the <code><a href=#the-area-element>area</a></code> element has
a <code title=attr-hyperlink-download><a href=#attr-hyperlink-download>download</a></code> attribute or the element's <code title=attr-hyperlink-target><a href=#attr-hyperlink-target>target</a></code> attribute is present and applying <a href=#the-rules-for-choosing-a-browsing-context-given-a-browsing-context-name>the rules for
choosing a browsing context given a browsing context name</a>, using the value of the <code title=attr-hyperlink-target><a href=#attr-hyperlink-target>target</a></code> attribute as the browsing context name, would result
Modified: source
===================================================================
--- source 2012-12-19 00:33:34 UTC (rev 7595)
+++ source 2012-12-19 20:11:40 UTC (rev 7596)
@@ -21627,8 +21627,13 @@
<p>The <span>activation behavior</span> of <code>a</code> elements that create <span
title="hyperlink">hyperlinks</span> is to run the following steps:</p>
- <ol>
+ <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>
+ <!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2033 -->
+ <!-- (didn't test if the bc has to be active) -->
+
<li><p>If either the <code>a</code> element has a <code
title="attr-hyperlink-download">download</code> attribute and the algorithm is not <span>allowed
to show a popup</span>, or the element's <code title="attr-hyperlink-target">target</code>
@@ -47868,8 +47873,11 @@
<p>The <span>activation behavior</span> of <code>area</code> elements is to run the following
steps:</p>
- <ol>
+ <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 title="event-click">click</code> event in question is not <span
title="concept-events-trusted">trusted</span> (i.e. a <code title="dom-click">click()</code>
method call was the reason for the event being dispatched), and the <code>area</code> element has
More information about the Commit-Watchers
mailing list