Skip to content

Commit 887dbb3

Browse files
committed
[selectors-4] Restore phrase limiting :any-link to a/area with href attrs. Reverts error introduced in 0ea038e
1 parent 7ee7ebd commit 887dbb3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

selectors-4/Overview.bs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ spec:css-pseudo-4; type:selector;
3636
text: ::after
3737
text: ::first-line
3838
text: ::first-letter
39+
spec:html; type:element-attr; for:a; text:href
3940
</pre>
4041

4142
<style>
@@ -2023,7 +2024,7 @@ The Hyperlink Pseudo-class: '':any-link''</h3>
20232024
The <dfn id='any-link-pseudo'>:any-link</dfn> pseudo-class represents an element
20242025
that acts as the source anchor of a hyperlink.
20252026
For example, in [[HTML5]],
2026-
any <{a}> or <{area}> elements are hyperlinks,
2027+
any <{a}> or <{area}> elements with an <{a/href}> attribute are hyperlinks,
20272028
and thus match <code>:any-link</code>.
20282029
It matches an element if the element would match either '':link'' or '':visited'',
20292030
and is equivalent to '':is(:link, :visited)''.

0 commit comments

Comments
 (0)