W3C home > Mailing lists > Public > www-style@w3.org > September 2010

Re: Custom dynamic properties

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 17 Sep 2010 10:42:21 -0700
Message-ID: <AANLkTin4r=gvbgMkGVWBD78Zj7TKGFKMje3Ybyh_WN8M@mail.gmail.com>
To: Paul Duffin <pduffin@volantis.com>
Cc: www-style <www-style@w3.org>
On Fri, Sep 17, 2010 at 10:34 AM, Paul Duffin <pduffin@volantis.com> wrote:
> Given that HTML has no namespace support I had not considered using attributes and attribute selectors due to the chance of clashing with a built in or extension attribute. I had not considered the data-* attributes which are frankly a poor substitute for a proper namespace mechanism but it is sufficient.
> I am also concerned that there is some difference between the behaviour of a pseudo class selector and an attribute selector. Otherwise, what was the point of adding the :enabled and :disabled pseudo classes when you could do that with attribute selectors and the disabled attribute.

What difference do you think there is between pseudoclasses and
attribute selectors?  Other than the fact that they refer to different
things, they're fairly similar.

:enabled and :disabled were presumably introduced for parsimony with
the other input-state-based pseudoclasses.  It's also easier to write
them than [disabled] and :not([disabled]) (plus, I don't think :not()
existed at the time :enabled was first created?).

Received on Friday, 17 September 2010 17:43:17 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:49:47 UTC