W3C home > Mailing lists > Public > www-style@w3.org > March 2006

Re: I18n comment: inheritance of :lang and |=

From: fantasai <fantasai.lists@inkedblade.net>
Date: Mon, 13 Mar 2006 20:42:19 -0500
Message-ID: <44161F7B.9040708@inkedblade.net>
To: www-style@w3.org, public-i18n-core@w3.org

Ian Hickson wrote:
> 
> I've added the example from the CSS 2.1 spec (which is even more 
> explicit). Let me know if that's ok or not:
> 
>   The difference between :lang(C) and the '|=' operator is that the '|=' 
>   operator only performs a comparison against a given attribute on the 
>   element, while the :lang(C) pseudo-class uses the UA's knowledge of the 
>   document's semantics to perform the comparison.
> 
>   In this HTML example, only the BODY matches [lang|=fr] (because it has a 
>   LANG attribute) but both the BODY and the P match :lang(fr) (because 
>   both are in French).
> 
>   <body lang=fr>
>     <p>Je suis fran&ccedil;ais.</p>
>   </body>

s/both are/both are declared to be/;

Since being in French and being declared, via HTML syntax, to be in French
are two different things. The paragraph in

   <body lang=fr>
     <p>I am not French.</p>
   </body>

would still match :lang(fr). :)

~fantasai
Received on Tuesday, 14 March 2006 01:42:32 GMT

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