Re: pseudo-attributes

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 
languages.

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.

-Boris

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