W3C home > Mailing lists > Public > www-style@w3.org > February 2008

Re: [css3] “Selectors that People Actually Use”

From: Jens Meiert <jens.meiert@erde3.com>
Date: Tue, 19 Feb 2008 10:54:03 +0100
Message-ID: <20080219095403.13820@gmx.net>
To: www-style@w3.org

> > * E:lang(fr) – Probably the most questionable selector since
> > apparently replaceable by attribute selectors.
> 
> Certainly not.
> 
> :lang() deals with not only with the attributes carried by the element
> also with the language of prose in the element. That is determined not
> only by the element itself, but also its ancestors, the META tags on the
> document if it's HTML and even the HTTP headers.

My fault, the way it is specified it cannot just be “replaced by attribute selectors”. Both the CSS 2.1 and 3 spec parts [1,2] might explain this pseudo-class in more detail though.


[1] http://www.w3.org/TR/CSS21/selector.html#lang
[2] http://www.w3.org/TR/css3-selectors/#lang-pseudo

-- 
Jens Meiert
http://meiert.com/en/
Received on Tuesday, 19 February 2008 09:54:15 GMT

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