Skip to content

Commit

Permalink
Centralize active document checks for <a>, <area>, and <link>
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed May 2, 2017
1 parent eb31d93 commit 3becdd1
Showing 1 changed file with 7 additions and 22 deletions.
29 changes: 7 additions & 22 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -13400,19 +13400,10 @@ interface <dfn>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
<p>User agents could also include other information, such as the type of the resource (as given by
the <code data-x="attr-link-type">type</code> attribute).</p>

<!-- c.f. <a> and <area>'s similar sections -->
<p>The <span>activation behavior</span> of <code>link</code> elements that create <span
data-x="hyperlink">hyperlinks</span> is to run the following steps:</p>

<ol><!-- c.f. <a> and <area>'s similar sections -->

<li><p>If the <code>link</code> element's <span>node document</span> is not <span>fully
active</span>, then abort these steps.</p></li>

<li><p><span data-x="following hyperlinks">Follow the hyperlink</span> created by the
<code>link</code> element.</p></li>

</ol>

data-x="hyperlink">hyperlinks</span> is to <span data-x="following hyperlinks">follow the
hyperlink</span> created by the <code>link</code> element.</p>



Expand Down Expand Up @@ -19182,12 +19173,8 @@ interface <dfn>HTMLAnchorElement</dfn> : <span>HTMLElement</span> {
<p>The <span>activation behavior</span> of <code>a</code> elements that create <span
data-x="hyperlink">hyperlinks</span> is to run the following steps:</p>

<ol><!-- c.f. <area>'s similar section, also <link>'s -->

<li><p>If the <code>a</code> element's <span>node document</span> is not <span>fully active</span>, then abort these steps.</p></li>
<ol><!-- c.f. <link> and <area>'s similar section -->
<!-- https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2033 -->
<!-- https://www.hixie.ch/tests/adhoc/html/navigation/iframe/002.html -->

<li>

<p>If the user has not indicated a specific <span>browsing context</span> for following the
Expand Down Expand Up @@ -22773,6 +22760,8 @@ interface <dfn>HTMLHyperlinkElementUtils</dfn> {
following steps:</p>

<ol>
<li><p>If <var>subject</var>'s <span>node document</span> is not <span>fully active</span>, then
return.</p></li>

<li><p>Let <var>replace</var> be false.</p></li>

Expand Down Expand Up @@ -38254,11 +38243,7 @@ interface <dfn>HTMLAreaElement</dfn> : <span>HTMLElement</span> {
<p>The <span>activation behavior</span> of <code>area</code> elements is to run the following
steps:</p>

<ol><!-- c.f. <a>'s similar section -->

<li><p>If the <code>area</code> element's <span>node document</span> is not <span>fully active</span>,
then abort these steps.</p></li>

<ol><!-- c.f. <link> and <a>'s similar section -->
<li>

<p>If the user has not indicated a specific <span>browsing context</span> for following the
Expand Down

0 comments on commit 3becdd1

Please sign in to comment.