W3C home > Mailing lists > Public > www-style@w3.org > December 2003

[CSS3] :lang() Selector

From: Ernest Cline <ernestcline@mindspring.com>
Date: Fri, 12 Dec 2003 22:31:31 -0500
Message-ID: <410-220031261333131171@mindspring.com>
To: "W3C CSS List" <www-style@w3.org>


There are several things that the CSS3 Selectors module doesn't make
clear about the :lang() selector.

1) Is :lang(en) supposed to match an element whose language is "en-US"?
The CSS3 Selectors Module sort of implies this when discussing the
[att|=val] selector but never explicitly states anywhere that :lang() has
this
behavior.

2) Assuming that the answer to my first question  is yes:
2A) Should  :lang() be used as a selector for an element that has
any  language defined on it?
2B) Should  :not(:lang()) be used as a selector for an element
for which the language is unknown?

3) In a situation where a document has been retrieved via HTTP or
similar mechanism and indicates for example that the document is
in both English and French and the document does not itself contain
any information about the language of the document.
3A) Should :root:lang(en):lang(fr) select the root element in this case?
3B) Should :root:lang(mul) select the root element in this case?
("Mul" is the ISO 639-2 code for multiple languages.)
3C) Should  root:lang() select the root element in this case?
3D) Should :root:not(:lang()) select the root element in this case?

Ernest Cline
ernestcline@mindspring.com
Received on Friday, 12 December 2003 22:36:15 GMT

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