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

Property Selector

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Mon, 19 Jul 2010 00:24:26 -0700
Message-ID: <AANLkTilkpRkHASh6Ti5ULndldNG4pmb-qhAsU9WarvcR@mail.gmail.com>
To: www-style <www-style@w3.org>
Standard attribute selectors are more flexible than property
selectors. They also fail silently if the attribute is missing.

document.querySelectorAll("[noexist=blah]"); // 0
document.querySelectorAll(":noexist"); // Error.

Why no generic property selector?

:property(name);
:property(name=value)

- where `value` is required to be an identifier or string [CSS2].
Anyway, I thought it would be useful for the selectors API.

Just wondering if this has occurred to anyone else.

Garrett
Received on Monday, 19 July 2010 07:24:53 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:29 GMT