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

@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