Re: [csswg-drafts] [selectors-4] Clarify :lang() behavior when the language range is not a well-formed BCP 47 code (#8720)

> lang="SomeRandomCode-Latn-US"

That tag cannot be parsed according to BCP47 syntax, and therefore *we have no basis to assume anything about any part of it*, such as the meaning of the `Latn` or `US` substrings in it, or even that the hyphens delimit "subtags" at all.

Therefore, IMO it should not match any `:lang()` pseudo, not even `:lang("*")`.

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


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

Received on Wednesday, 19 April 2023 15:12:46 UTC