W3C home > Mailing lists > Public > www-style@w3.org > February 2008

Re: lang: and BCP47 (was: Re: [CSSWG] Resolutions 2008-02-26)

From: Bert Bos <bert@w3.org>
Date: Fri, 29 Feb 2008 19:21:52 +0100
To: www-style@w3.org
Message-Id: <200802291921.52524.bert@w3.org>

On Friday 29 February 2008 11:38, Anne van Kesteren wrote:
> On Fri, 29 Feb 2008 07:27:09 +0100, fantasai
>
> <fantasai.lists@inkedblade.net> wrote:
> > - RESOLVED: Proposal to normalize language strings to 3066 before
> > matching against :lang() accepted.
>
> I'd like to hear a use case for this. I don't think it makes sense.
> The languages Selectors is working with are all using BCP47 (3066 is
> pretty old now) so making the definition quirkier might think people
> stuff like <div lang=dut> should be matched by :lang(nl-NL) and
> things like that...

I agree it is rather theoretical and there is no urgent need to improve 
the spec, but it doesn't hurt either.

The spec currently says[1] that the C in ':lang(C)' may be an identifier 
that is not a language, but it doesn't actually say when an identifier 
is not a language. Referring to RFC 3066 (now RFC 4646) is what 
everybody does anyway and it avoids that somebody in the future 
accidentally creates an incompatible definition for language 
identifiers.

[1] http://www.w3.org/TR/2005/WD-css3-selectors-20051215/#lang-pseudo



Bert
-- 
  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos                               W3C/ERCIM
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France
Received on Friday, 29 February 2008 18:22:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:01 GMT