Skip to content

Commit b039c10

Browse files
committed
Switch :current to :links-here
1 parent 41bf250 commit b039c10

2 files changed

Lines changed: 23 additions & 27 deletions

File tree

selectors4/Overview.html

Lines changed: 12 additions & 14 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 :current</a>
225+
location pseudo-class :links-here</a>
226226

227227
<li><a href="#scope-pseudo"><span class=secno>7.3. </span> The scope
228228
pseudo-class :scope</a>
@@ -1706,13 +1706,11 @@ <h3 id=link><span class=secno>7.1. </span> The link history pseudo-classes:
17061706
unvisited links differently.
17071707

17081708
<h3 id=here-pseudo><span class=secno>7.2. </span> The link location
1709-
pseudo-class :current</h3>
1709+
pseudo-class :links-here</h3>
17101710

1711-
<p class=issue>This pseudo-class needs a better name.
1712-
1713-
<p>The <code>:current</code> pseudo-class allows authors to style links
1711+
<p>The <code>:links-here</code> pseudo-class allows authors to style links
17141712
based on the users current location within a site and to differentiate
1715-
site-internal versus site-external links. The <code>:current</code>
1713+
site-internal versus site-external links. The <code>:links-here</code>
17161714
pseudo-class represents an element that is the source anchor of a
17171715
hyperlink whose target's absolute URI matches the element's own document
17181716
URI. The fragment identifier of the document URI is stripped before
@@ -1723,7 +1721,7 @@ <h3 id=here-pseudo><span class=secno>7.2. </span> The link location
17231721
<p>For example, the following rule prevents links targetting the current
17241722
page from being underlined when they are part of the navigation list:
17251723

1726-
<pre>nav :current { text-decoration: none; }</pre>
1724+
<pre>nav :links-here { text-decoration: none; }</pre>
17271725
</div>
17281726

17291727
<p>The pseudo-class can also accept a non-negative integer as its sole
@@ -1739,7 +1737,7 @@ <h3 id=here-pseudo><span class=secno>7.2. </span> The link location
17391737
not match anything. Similarly if the document's URI is not a URL, the
17401738
pseudo-class does not match anything. The scheme, username, password,
17411739
port, query string, and fragment portions of the URL are not considered
1742-
when matching against <code>:current(<var>n</var>)</code>.
1740+
when matching against <code>:linkes-here(<var>n</var>)</code>.
17431741

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

17661764
<ol>
1767-
<li><code>a:current {...}</code>
1765+
<li><code>a:links-here {...}</code>
17681766

1769-
<li><code>a:current(0) {...}</code>
1767+
<li><code>a:links-here(0) {...}</code>
17701768

1771-
<li><code>a:current(1) {...}</code>
1769+
<li><code>a:links-here(1) {...}</code>
17721770

1773-
<li><code>a:current(2) {...}</code>
1771+
<li><code>a:links-here(2) {...}</code>
17741772

1775-
<li><code>a:current(3) {...}</code>
1773+
<li><code>a:links-here(3) {...}</code>
17761774
</ol>
17771775

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

1799-
<pre>:not(:current(0)) { text-decoration-style: dashed; }</pre>
1797+
<pre>:not(:links-here(0)) { text-decoration-style: dashed; }</pre>
18001798
</div>
18011799

18021800
<h3 id=scope-pseudo><span class=secno>7.3. </span> The scope pseudo-class

selectors4/Overview.src.html

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

12501250

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

1254-
<p class="issue">This pseudo-class needs a better name.</p>
1255-
1256-
<p>The <code>:current</code> pseudo-class allows authors to style
1254+
<p>The <code>:links-here</code> pseudo-class allows authors to style
12571255
links based on the users current location within a site and to
12581256
differentiate site-internal versus site-external links. The
1259-
<code>:current</code> pseudo-class represents an element that is
1257+
<code>:links-here</code> pseudo-class represents an element that is
12601258
the source anchor of a hyperlink whose target's absolute URI
12611259
matches the element's own document URI.
12621260
The fragment identifier of the document URI is stripped before
@@ -1267,7 +1265,7 @@ <h3 id="here-pseudo">
12671265
<p>For example, the following rule prevents links targetting the
12681266
current page from being underlined when they are part of the
12691267
navigation list:
1270-
<pre>nav :current { text-decoration: none; }</pre>
1268+
<pre>nav :links-here { text-decoration: none; }</pre>
12711269
</div>
12721270

12731271
<p>The pseudo-class can also accept a non-negative integer as its sole
@@ -1283,7 +1281,7 @@ <h3 id="here-pseudo">
12831281
not a URL, the pseudo-class does not match anything. The scheme,
12841282
username, password, port, query string, and fragment portions of the
12851283
URL are not considered when matching against
1286-
<code>:current(<var>n</var>)</code>.
1284+
<code>:linkes-here(<var>n</var>)</code>.
12871285

12881286
<p class="issue">Is there such a thing as IRL? Because we do want this
12891287
to work for internationalized URLs, just not URNs.</p>
@@ -1299,11 +1297,11 @@ <h3 id="here-pseudo">
12991297
</ol>
13001298
<p>and the styles:
13011299
<ol>
1302-
<li><code>a:current {...}</code>
1303-
<li><code>a:current(0) {...}</code>
1304-
<li><code>a:current(1) {...}</code>
1305-
<li><code>a:current(2) {...}</code>
1306-
<li><code>a:current(3) {...}</code>
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>
13071305
</ol>
13081306
<p>If the document's URI is <code>http://www.example.com/2011/03/</code>:
13091307
<ol>
@@ -1318,7 +1316,7 @@ <h3 id="here-pseudo">
13181316
<div class="example">
13191317
<p>The following example styles all site-external links with a dashed
13201318
underline.
1321-
<pre>:not(:current(0)) { text-decoration-style: dashed; }</pre>
1319+
<pre>:not(:links-here(0)) { text-decoration-style: dashed; }</pre>
13221320
</div>
13231321

13241322
<h3 id=scope-pseudo>

0 commit comments

Comments
 (0)