Skip to content

Commit e7aeb8f

Browse files
committed
Clarify that the absolute URLs are compared
1 parent 6536149 commit e7aeb8f

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

selectors4/Overview.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1713,9 +1713,10 @@ <h3 id=here-pseudo><span class=secno>8.2. </span> The link location
17131713
based on the users current location within a site and to differentiate
17141714
site-internal versus site-external links. The <code>:current</code>
17151715
pseudo-class represents an element that is the source anchor of a
1716-
hyperlink whose target matches the element's own document URI. The
1717-
fragment identifier of the document URI is stripped before matching
1718-
against the link's URI; otherwise all portions of the URI are considered.
1716+
hyperlink whose target's absolute URI matches the element's own document
1717+
URI. The fragment identifier of the document URI is stripped before
1718+
matching against the link's URI; otherwise all portions of the URI are
1719+
considered.
17191720

17201721
<div class=example>
17211722
<p>For example, the following rule prevents links targetting the current

selectors4/Overview.src.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,10 +1257,11 @@ <h3 id="here-pseudo">
12571257
links based on the users current location within a site and to
12581258
differentiate site-internal versus site-external links. The
12591259
<code>:current</code> pseudo-class represents an element that is
1260-
the source anchor of a hyperlink whose target matches the element's
1261-
own document URI. The fragment identifier of the document URI
1262-
is stripped before matching against the link's URI; otherwise all
1263-
portions of the URI are considered.
1260+
the source anchor of a hyperlink whose target's absolute URI
1261+
matches the element's own document URI.
1262+
The fragment identifier of the document URI is stripped before
1263+
matching against the link's URI; otherwise all portions of the
1264+
URI are considered.
12641265

12651266
<div class="example">
12661267
<p>For example, the following rule prevents links targetting the

0 commit comments

Comments
 (0)