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

> > * 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 UTC