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

Re: pseudo-attributes

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 29 Oct 2008 10:51:35 -0700
Message-ID: <4908A2A7.2020401@mit.edu>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: www-style@w3.org

Tab Atkins Jr. wrote:
> Consider my earlier words as imprecise, then.  I am proposing that 
> attribute selectors use the DOM property values, rather than the written 
> attribute values, at least in html.

This would introduce a really bizarre difference between HTML and other 

It would also break any site using something like [class=foo].

> We already have :checked relying on a DOM value rather than an attribute value

Right, but it doesn't reuse the existing attribute syntax.  Hence 
David's proposal to create a new syntax to refer to things like this. 
Making it work for arbitrary properties is an interesting thought, but 
would you limit this to DOM properties?  Or also expandos?  What about 
cases where a property would be an expando in one browser but a DOM 
property in another?  What about cases when an property is set to 
different values in different languages, in environments that support that?

Trying to define a blanket rule here that sort of makes sense is going 
to be very very difficult.

Received on Wednesday, 29 October 2008 17:53:45 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:31 UTC