[csswg-drafts] [selectors] :local-link definition's comparison of URLs should be more precise than "matches" (#10976)

jyasskin has just created a new issue for https://github.com/w3c/csswg-drafts:

== [selectors] :local-link definition's comparison of URLs should be more precise than "matches" ==
This is nitpicky, but "matches" tends to be ambiguous when applied to data structures like URLs. Sometimes it just means "equals", and other times it means something more complicated and sometimes unspecified. In this case, I think it means https://url.spec.whatwg.org/#concept-url-equals, conditionally with the [exclude fragments flag](https://url.spec.whatwg.org/#url-equals-exclude-fragments), so you should say that.

The relevant text in https://drafts.csswg.org/selectors-4/#the-local-link-pseudo is:

> It represents an element that is the source anchor of a hyperlink whose target’s absolute URL matches the element’s own document URL. If the hyperlink’s target includes a fragment URL, then the fragment URL of the current URL must also match; if it does not, then the fragment URL portion of the current URL is not taken into account in the comparison.

This might become:

> It represents an element that is the source anchor of a hyperlink whose target’s absolute URL [=url/equals=] the element’s own document URL, with the [=url/equals/exclude fragments=] parameter set to true if the hyperlink’s target URL has a null [=url/fragment=].

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10976 using your GitHub account


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

Received on Monday, 30 September 2024 17:22:44 UTC