W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2018

Re: [csswg-drafts] Poor description of :lang() psuedo class selector [css-3] [selectors-3]

From: fantasai via GitHub <sysbot+gh@w3.org>
Date: Wed, 14 Nov 2018 22:26:55 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-438842451-1542234414-sysbot+gh@w3.org>
@AmeliaBR is exactly right. Selectors can be used with markup languages other than HTML, and not all of them will use BCP47 syntax to represent the content language, so Selectors requires the UA to convert to BCP47 syntax before making the comparison. For example, DocBook 3.1 accepts en_US https://tdg.docbook.org/tdg/3.1/refelem.html#DBRE.X.COMMON  on its lang attribute.

I've tweaked the wording a bit to not imply that we're normalizing arbitrary strings to BCP47. https://github.com/w3c/csswg-drafts/commit/2df8680b5aa0be3ba3dca0ae512c62aad7a39c8e https://drafts.csswg.org/selectors-4/#the-lang-pseudo Let me know if this is acceptable @GLRoylance 

-- 
GitHub Notification of comment by fantasai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3022#issuecomment-438842451 using your GitHub account
Received on Wednesday, 14 November 2018 22:26:57 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:39 UTC