Skip to content

Commit

Permalink
[giow] (3) Make click() have no effect on links in non-bc'ed docs.
Browse files Browse the repository at this point in the history
Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@7596 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Dec 19, 2012
1 parent 098bc56 commit 96b8cd6
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
12 changes: 10 additions & 2 deletions complete.html
Expand Up @@ -20430,7 +20430,12 @@ <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><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
Expand Down Expand Up @@ -40939,7 +40944,10 @@ <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><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
Expand Down
12 changes: 10 additions & 2 deletions index
Expand Up @@ -20430,7 +20430,12 @@ 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><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
Expand Down Expand Up @@ -40939,7 +40944,10 @@ 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><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
Expand Down
12 changes: 10 additions & 2 deletions source
Expand Up @@ -21627,7 +21627,12 @@ included with Exhibit B.
<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
Expand Down Expand Up @@ -47868,7 +47873,10 @@ function AddCloud(data, x, y) { ... }</pre>
<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>
Expand Down

0 comments on commit 96b8cd6

Please sign in to comment.