W3C home > Mailing lists > Public > public-i18n-core@w3.org > January to March 2006

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

From: Richard Ishida <ishida@w3.org>
Date: Tue, 14 Mar 2006 17:01:05 -0000
To: "'Ian Hickson'" <ian@hixie.ch>
Cc: <www-style@w3.org>, <public-i18n-core@w3.org>
Message-ID: <016b01c64788$e290e9b0$6501a8c0@w3cishida>

I pushed back on this with Francois during our i18n call.  I still think the best is 

In this HTML example, the P does not match p[lang|=fr] (because only BODY has a LANG attribute) but the P does match p:lang(fr).
<body lang="fr">
   <p>Je suis Français.</p>

since matching the body element is not central to the point of the example - the example is all about the behaviour of the p element.  (Note also that the above introduces 'p's before the '['s.  Francois had no noticed that change.) 

(I uppercased the 'F' in the version above). 

(Btw, I'm assuming that the capitalisation of words like LANG just indicates some special styling rather than intended capitalisation in the final text.)


Richard Ishida
Internationalization Lead
W3C (World Wide Web Consortium)


> -----Original Message-----
> From: François Yergeau [mailto:francois@yergeau.com] 
> Sent: 14 March 2006 16:01
> To: Richard Ishida
> Cc: 'Ian Hickson'; www-style@w3.org; public-i18n-core@w3.org
> Subject: Re: I18n comment: inheritance of :lang and |=
> Richard Ishida a écrit :
> > In this HTML example, the P does not match [lang|=fr]
>  > (because only BODY has a LANG attribute) but both the  > 
> BODY and the P match :lang(fr).
> I prefer this version to Richard's later, simpler one.  I 
> think it's better to say explicitly that the body matches :lang(fr).
> Oh, and français needs a capital F:
> >  
> > <body lang="fr">
> >    <p>Je suis Français.</p>
> >    </body>
> --
> François
Received on Tuesday, 14 March 2006 17:01:24 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:23:00 UTC