Skip to content

Commit 4c6b00d

Browse files
committed
[selectors] Fix the :local-link examples.
1 parent 3ce24b5 commit 4c6b00d

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

selectors/Overview.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2727,7 +2727,6 @@ <h3 id=local-pseudo><span class=secno>8.3. </span> The local link
27272727
<p>Path segments are portions of the URL's path that are separated by
27282728
forward slashes (/). If a segment is missing from the document's URL, a
27292729
pseudo-class requiring that segment to match does not match anything.
2730-
However, an empty final path segment is ignored.
27312730

27322731
<div class=example>
27332732
<p>So, given the links:
@@ -2748,7 +2747,7 @@ <h3 id=local-pseudo><span class=secno>8.3. </span> The local link
27482747
<li><code>&lt;a
27492748
href="https://www.example.com/2011/03/">March&lt;/a></code>
27502749

2751-
<li><code>&lt;a href="http://example.com/2011/03">March&lt;/a></code>
2750+
<li><code>&lt;a href="http://example.com/2011/03/">March&lt;/a></code>
27522751
</ol>
27532752

27542753
<p>and the styles:
@@ -2763,6 +2762,8 @@ <h3 id=local-pseudo><span class=secno>8.3. </span> The local link
27632762
<li><code>a:local-link(2) {...}</code>
27642763

27652764
<li><code>a:local-link(3) {...}</code>
2765+
2766+
<li><code>a:local-link(4) {...}</code>
27662767
</ol>
27672768

27682769
<p>If the document's URL is <code>http://www.example.com/2011/03/</code>:
@@ -2774,15 +2775,15 @@ <h3 id=local-pseudo><span class=secno>8.3. </span> The local link
27742775

27752776
<li>Link 3 would receive Styles B, C, and D
27762777

2777-
<li>Link 4 would also receive Styles A, B, C, and D
2778+
<li>Link 4 would also receive Styles A, B, C, D, and E
27782779

27792780
<li>Link 5 would receive Styles B, C, and D
27802781

2781-
<li>Link 6 would receive Styles B, C, and D
2782+
<li>Link 6 would remain unstyled
27822783

27832784
<li>Link 7 would remain unstyled
27842785

2785-
<li>Style E would not be applied to anything
2786+
<li>Style F would not be applied to anything
27862787
</ol>
27872788
</div>
27882789

selectors/Overview.src.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1835,7 +1835,6 @@ <h3 id="local-pseudo">
18351835
<p>Path segments are portions of the URL's path that are separated by forward slashes (/).
18361836
If a segment is missing from the document's URL,
18371837
a pseudo-class requiring that segment to match does not match anything.
1838-
However, an empty final path segment is ignored.
18391838

18401839
<div class="example">
18411840
<p>So, given the links:
@@ -1846,7 +1845,7 @@ <h3 id="local-pseudo">
18461845
<li><code>&lt;a href="http://www.example.com/2011/03/">March&lt;/a></code>
18471846
<li><code>&lt;a href="http://www.example.com/2011/03/21">21 March&lt;/a></code>
18481847
<li><code>&lt;a href="https://www.example.com/2011/03/">March&lt;/a></code>
1849-
<li><code>&lt;a href="http://example.com/2011/03">March&lt;/a></code>
1848+
<li><code>&lt;a href="http://example.com/2011/03/">March&lt;/a></code>
18501849
</ol>
18511850
<p>and the styles:
18521851
<ol type=A>
@@ -1855,17 +1854,18 @@ <h3 id="local-pseudo">
18551854
<li><code>a:local-link(1) {...}</code>
18561855
<li><code>a:local-link(2) {...}</code>
18571856
<li><code>a:local-link(3) {...}</code>
1857+
<li><code>a:local-link(4) {...}</code>
18581858
</ol>
18591859
<p>If the document's URL is <code>http://www.example.com/2011/03/</code>:
18601860
<ol>
18611861
<li>Link 1 would receive Style B
18621862
<li>Link 2 would receive Styles B and C
18631863
<li>Link 3 would receive Styles B, C, and D
1864-
<li>Link 4 would also receive Styles A, B, C, and D
1864+
<li>Link 4 would also receive Styles A, B, C, D, and E
18651865
<li>Link 5 would receive Styles B, C, and D
1866-
<li>Link 6 would receive Styles B, C, and D
1866+
<li>Link 6 would remain unstyled
18671867
<li>Link 7 would remain unstyled
1868-
<li>Style E would not be applied to anything
1868+
<li>Style F would not be applied to anything
18691869
</ol>
18701870
</div>
18711871

0 commit comments

Comments
 (0)