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

BCP 47 is the concatenation of RFC 5646 and RFC 5647.

RFC 5646 supersedes RFC 4646 which supersedes RFC 3066.

On Thu, Aug 16, 2018 at 1:35 PM, Amelia Bellamy-Royds <
notifications@github.com> wrote:

> I suspect part of the vagueness is because the CSS pseudoclass is designed
> to work with many different document types, which may have their own
> syntaxes for specifying the element language.
>
> CSS uses BCP 47 in the :lang() selector. If a document type uses a
> different syntax, the user agent needs to convert it to BCP 47 in order to
> test equality.
>
> The allowed values for the lang attribute in HTML
> <https://html.spec.whatwg.org/multipage/dom.html#the-lang-and-xml:lang-attributes>
> and the xml:lang attribute in XML
> <https://www.w3.org/TR/2006/REC-xml11-20060816/#sec-lang-tag> are defined
> in those specifications. HTML specifies BCP 47, XML references rfc 3066.
> I'm not an expert on the differences between those two, but I'm pretty sure
> "en_US" isn't valid for either.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/w3c/csswg-drafts/issues/3022#issuecomment-413676381>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/Ah_aIDdj9p03obydXLDq39ufcdCL3Vxtks5uRdekgaJpZM4WAJ2q>
> .
>


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

Received on Thursday, 16 August 2018 20:56:16 UTC