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?


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

Received on Monday, 19 July 2010 07:24:53 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:48 UTC