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

Poking this sleeping issue in the context of

 - https://github.com/w3c/csswg-drafts/issues/13469

@tabatkins suggested:

> Right, this is undefined in the spec right now. If the `:lang()` argument can't be interpreted in BCP-47 syntax, it should definitely just fail to match straight away.

Proposed async resolution: Selectors 4 should state that  any `:lang()` argument cannot be parsed with the BCP-47 syntax causes the selector to not match

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


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

Received on Tuesday, 10 March 2026 20:06:46 UTC