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

identifying changes in language

From: Charles McCathieNevile <charles@w3.org>
Date: Wed, 24 Nov 1999 12:25:45 -0500 (EST)
To: WAI UA group <w3c-wai-ua@w3.org>
Message-ID: <Pine.LNX.4.20.9911241220000.1028-100000@tux.w3.org>
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]

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, although there may be
other examples like x-invented-language that are also selected, and [lang =
en] will match anything with lang="en"

Charles McCN

--Charles McCathieNevile            mailto:charles@w3.org
phone: +1 617 258 0992   http://www.w3.org/People/Charles
W3C Web Accessibility Initiative    http://www.w3.org/WAI
MIT/LCS  -  545 Technology sq., Cambridge MA, 02139,  USA
Received on Wednesday, 24 November 1999 12:25:46 UTC

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