Re: [csswg-drafts] [selectors] “any <a> or <area> elements are hyperlinks” is incorrect (#6957)

More precisely, an `a` or `area` element with a href attribute is a source of a hyperlink and the resource or resource fragment identified in `href` is the target – a link cannot exist without both (or more than two – XLink allows that). And although HTML5 drops the mention that `a` without `href` may be used to mark up the target, it neither forbids it, nor offers an alternative (fortunately), so it IMO remains advisable.

Incidentally, the above also suggests that `:any-link` shouldn't match if the value of `href` is syntactically invalid per RFC 3986.

-- 
GitHub Notification of comment by ByteEater-pl
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6957#issuecomment-1020797365 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 25 January 2022 04:22:21 UTC