W3C home > Mailing lists > Public > w3c-wai-ua@w3.org > October to December 1999

Re: identifying changes in language

From: Masayasu Ishikawa <mimasa@w3.org>
Date: Thu, 25 Nov 1999 03:02:05 +0900
To: w3c-wai-ua@w3.org
Message-Id: <19991125030205R.mimasa@w3.mag.keio.ac.jp>
Charles McCathieNevile <charles@w3.org> wrote:

> The CSS2 selector [lang] can be used in HTML to identify elements which have
> a lang attribute. In XML languages which implement the xml:lang attribute the
> equivalent selector is [xml:lang]

You may also use :lang() pseudo-class.

> Note that it is also possible to select for particular languages - for
> example (if I recall the syntax correctly) [lang ~ en] selects languages
> which include the sequence "en" - primarily english,

No, you should use [lang|="en"].  This attribute selector was
specially designed for hyphen-separated list of values, such as
language code.

Regards,
-- 
Masayasu Ishikawa / mimasa@w3.org
W3C - World Wide Web Consortium
Received on Wednesday, 24 November 1999 13:02:08 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:49:25 UTC