Skip to content

Commit 5150c58

Browse files
committed
[selectors] Make :local-link() use the origin rather than just domain, to match other web stuff.
1 parent f5b3117 commit 5150c58

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

selectors/Overview.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
rel=dcterms.rights>
1111
<meta content="Selectors Level 4" name=dcterms.title>
1212
<meta content=text name=dcterms.type>
13-
<meta content=2013-05-02 name=dcterms.date>
13+
<meta content=2013-05-13 name=dcterms.date>
1414
<meta content="Elika J. Etemad" name=dcterms.creator>
1515
<meta content="Tab Atkins Jr." name=dcterms.creator>
1616
<meta content=W3C name=dcterms.publisher>
@@ -31,13 +31,13 @@
3131

3232
<h1 id=title>Selectors Level 4</h1>
3333

34-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 2 May 2013</h2>
34+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 13 May 2013</h2>
3535

3636
<dl>
3737
<dt>This version:
3838

3939
<dd><a href="http://dev.w3.org/csswg/selectors4/">
40-
http://www.w3.org/TR/2013/ED-selectors4-20130502/</a>
40+
http://www.w3.org/TR/2013/ED-selectors4-20130513/</a>
4141

4242
<dt>Editor's draft:
4343

@@ -2706,7 +2706,7 @@ <h3 id=local-pseudo><span class=secno>8.3. </span> The local link
27062706

27072707
<ul>
27082708
<li><code class=css>:local-link(0)</code>’ represents a link element
2709-
whose target is in the same domain as the document's URL
2709+
whose target is in the same origin as the document's URL
27102710

27112711
<li><code class=css>:local-link(1)</code>’ represents a link element
27122712
whose target has the same domain and first path segment
@@ -2786,8 +2786,10 @@ <h3 id=local-pseudo><span class=secno>8.3. </span> The local link
27862786
</ol>
27872787
</div>
27882788

2789-
<p>The scheme, username, password, port, query string, and fragment
2790-
portions of the URL are not considered when matching against
2789+
<p> The "origin" of the URL is defined by <a
2790+
href="http://tools.ietf.org/html/rfc6454#section-4">RFC 6454, Section
2791+
4</a>. The username, password, query string, and fragment portions of the
2792+
URL are not considered when matching against
27912793
<code>:local-link(<var>n</var>)</code>. If the document's URL does not
27922794
belong to a hierarchical scheme, the functional pseudo-class matches
27932795
nothing.

selectors/Overview.src.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1820,7 +1820,7 @@ <h3 id="local-pseudo">
18201820
which, if the document's URL belongs to a hierarchical scheme,
18211821
indicates the number of path levels to match:
18221822
<ul>
1823-
<li>'':local-link(0)'' represents a link element whose target is in the same domain as the document's URL
1823+
<li>'':local-link(0)'' represents a link element whose target is in the same origin as the document's URL
18241824
<li>'':local-link(1)'' represents a link element whose target has the same domain and first path segment
18251825
<li>'':local-link(2)'' represents a link element whose target has the same domain, first, and second path segments
18261826
<li>etc.
@@ -1869,7 +1869,9 @@ <h3 id="local-pseudo">
18691869
</ol>
18701870
</div>
18711871

1872-
<p>The scheme, username, password, port, query string, and fragment portions of the URL are not considered
1872+
<p>
1873+
The "origin" of the URL is defined by <a href="http://tools.ietf.org/html/rfc6454#section-4">RFC 6454, Section 4</a>.
1874+
The username, password, query string, and fragment portions of the URL are not considered
18731875
when matching against <code>:local-link(<var>n</var>)</code>.
18741876
If the document's URL does not belong to a hierarchical scheme,
18751877
the functional pseudo-class matches nothing.

0 commit comments

Comments
 (0)