views:

83

answers:

2

That is, can I define a selector called "shiny" and do ... ?

$$('div.shiny') //undesired -- class based
$$('div:shiny') //desired -- logic based

This is available in MooTools and jQuery.

A: 

according to $$ it supports:

$$('div:empty');
// -> all DIVs without content (i.e., whitespace-only)
Tzury Bar Yochay
What about where you were the one to define what ":empty" was?
Mario
A: 

its not possible now, you will need to wait for Prototype 1.7 which will be using Sizzle as the default selector engine

seengee
I'll look forward to that. Thanks.
Mario