[CSS3] :lang() Selector

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 UTC