Skip to content

Commit 6c56777

Browse files
committed
Switch :links-here to :local-link per f2f feedback
1 parent 7c419ad commit 6c56777

2 files changed

Lines changed: 23 additions & 23 deletions

File tree

selectors4/Overview.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
222222
pseudo-classes: :link and :visited</a>
223223

224224
<li><a href="#here-pseudo"><span class=secno>7.2. </span> The link
225-
location pseudo-class :links-here</a>
225+
location pseudo-class :local-link</a>
226226

227227
<li><a href="#target-pseudo"><span class=secno>7.3. </span> The target
228228
pseudo-class :target</a>
@@ -1723,11 +1723,11 @@ <h3 id=link><span class=secno>7.1. </span> The link history pseudo-classes:
17231723
unvisited links differently.
17241724

17251725
<h3 id=here-pseudo><span class=secno>7.2. </span> The link location
1726-
pseudo-class :links-here</h3>
1726+
pseudo-class :local-link</h3>
17271727

1728-
<p>The <code>:links-here</code> pseudo-class allows authors to style links
1728+
<p>The <code>:local-link</code> pseudo-class allows authors to style links
17291729
based on the users current location within a site and to differentiate
1730-
site-internal versus site-external links. The <code>:links-here</code>
1730+
site-internal versus site-external links. The <code>:local-link</code>
17311731
pseudo-class represents an element that is the source anchor of a
17321732
hyperlink whose target's absolute URI matches the element's own document
17331733
URI. The fragment identifier of the document URI is stripped before
@@ -1738,7 +1738,7 @@ <h3 id=here-pseudo><span class=secno>7.2. </span> The link location
17381738
<p>For example, the following rule prevents links targetting the current
17391739
page from being underlined when they are part of the navigation list:
17401740

1741-
<pre>nav :links-here { text-decoration: none; }</pre>
1741+
<pre>nav :local-link { text-decoration: none; }</pre>
17421742
</div>
17431743

17441744
<p>The pseudo-class can also accept a non-negative integer as its sole
@@ -1754,7 +1754,7 @@ <h3 id=here-pseudo><span class=secno>7.2. </span> The link location
17541754
not match anything. Similarly if the document's URI is not a URL, the
17551755
pseudo-class does not match anything. The scheme, username, password,
17561756
port, query string, and fragment portions of the URL are not considered
1757-
when matching against <code>:links-here(<var>n</var>)</code>.
1757+
when matching against <code>:local-link(<var>n</var>)</code>.
17581758

17591759
<p class=issue>Is there such a thing as IRL? Because we do want this to
17601760
work for internationalized URLs, just not URNs.
@@ -1779,15 +1779,15 @@ <h3 id=here-pseudo><span class=secno>7.2. </span> The link location
17791779
<p>and the styles:
17801780

17811781
<ol>
1782-
<li><code>a:links-here {...}</code>
1782+
<li><code>a:local-link {...}</code>
17831783

1784-
<li><code>a:links-here(0) {...}</code>
1784+
<li><code>a:local-link(0) {...}</code>
17851785

1786-
<li><code>a:links-here(1) {...}</code>
1786+
<li><code>a:local-link(1) {...}</code>
17871787

1788-
<li><code>a:links-here(2) {...}</code>
1788+
<li><code>a:local-link(2) {...}</code>
17891789

1790-
<li><code>a:links-here(3) {...}</code>
1790+
<li><code>a:local-link(3) {...}</code>
17911791
</ol>
17921792

17931793
<p>If the document's URI is <code>http://www.example.com/2011/03/</code>:
@@ -1811,7 +1811,7 @@ <h3 id=here-pseudo><span class=secno>7.2. </span> The link location
18111811
<p>The following example styles all site-external links with a dashed
18121812
underline.
18131813

1814-
<pre>:not(:links-here(0)) { text-decoration-style: dashed; }</pre>
1814+
<pre>:not(:local-link(0)) { text-decoration-style: dashed; }</pre>
18151815
</div>
18161816

18171817
<h3 id=target-pseudo><span class=secno>7.3. </span> The target pseudo-class

selectors4/Overview.src.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,12 +1249,12 @@ <h3 id=link>
12491249

12501250

12511251
<h3 id="here-pseudo">
1252-
The link location pseudo-class :links-here</h3>
1252+
The link location pseudo-class :local-link</h3>
12531253

1254-
<p>The <code>:links-here</code> pseudo-class allows authors to style
1254+
<p>The <code>:local-link</code> pseudo-class allows authors to style
12551255
links based on the users current location within a site and to
12561256
differentiate site-internal versus site-external links. The
1257-
<code>:links-here</code> pseudo-class represents an element that is
1257+
<code>:local-link</code> pseudo-class represents an element that is
12581258
the source anchor of a hyperlink whose target's absolute URI
12591259
matches the element's own document URI.
12601260
The fragment identifier of the document URI is stripped before
@@ -1265,7 +1265,7 @@ <h3 id="here-pseudo">
12651265
<p>For example, the following rule prevents links targetting the
12661266
current page from being underlined when they are part of the
12671267
navigation list:
1268-
<pre>nav :links-here { text-decoration: none; }</pre>
1268+
<pre>nav :local-link { text-decoration: none; }</pre>
12691269
</div>
12701270

12711271
<p>The pseudo-class can also accept a non-negative integer as its sole
@@ -1281,7 +1281,7 @@ <h3 id="here-pseudo">
12811281
not a URL, the pseudo-class does not match anything. The scheme,
12821282
username, password, port, query string, and fragment portions of the
12831283
URL are not considered when matching against
1284-
<code>:links-here(<var>n</var>)</code>.
1284+
<code>:local-link(<var>n</var>)</code>.
12851285

12861286
<p class="issue">Is there such a thing as IRL? Because we do want this
12871287
to work for internationalized URLs, just not URNs.</p>
@@ -1297,11 +1297,11 @@ <h3 id="here-pseudo">
12971297
</ol>
12981298
<p>and the styles:
12991299
<ol>
1300-
<li><code>a:links-here {...}</code>
1301-
<li><code>a:links-here(0) {...}</code>
1302-
<li><code>a:links-here(1) {...}</code>
1303-
<li><code>a:links-here(2) {...}</code>
1304-
<li><code>a:links-here(3) {...}</code>
1300+
<li><code>a:local-link {...}</code>
1301+
<li><code>a:local-link(0) {...}</code>
1302+
<li><code>a:local-link(1) {...}</code>
1303+
<li><code>a:local-link(2) {...}</code>
1304+
<li><code>a:local-link(3) {...}</code>
13051305
</ol>
13061306
<p>If the document's URI is <code>http://www.example.com/2011/03/</code>:
13071307
<ol>
@@ -1316,7 +1316,7 @@ <h3 id="here-pseudo">
13161316
<div class="example">
13171317
<p>The following example styles all site-external links with a dashed
13181318
underline.
1319-
<pre>:not(:links-here(0)) { text-decoration-style: dashed; }</pre>
1319+
<pre>:not(:local-link(0)) { text-decoration-style: dashed; }</pre>
13201320
</div>
13211321

13221322
<h3 id=target-pseudo>

0 commit comments

Comments
 (0)