[whatwg] getElementsByCSSSelector

Julien Couvreur julien.couvreur at gmail.com
Sat Jan 14 09:28:00 PST 2006


One of the main uses is to bind behaviors to elements. This allows for
a clean markup with a well separated logic.

The Behaviour library takes that approach:
http://bennolan.com/behaviour/

Cheers,
Julien

On 1/14/06, Jim Ley <jim.ley at gmail.com> wrote:
> On 1/14/06, Karoly Negyesi <karoly at negyesi.net> wrote:
> > A getElementsByCSSSelector IMO would be great and introduces minimal plus
> > burden on browsers -- they have CSS selector code anyways.
> >
> > It's very unfriendly that I can do magic with CSS2/3 selectors and then I
> > need to translate them myself if I want to change them on-the-fly.
>
> Why would you want to change the content of all elements that matched
> a particular selector?
>
> Could you explain some use cases?
>
> Jim.
>



More information about the whatwg mailing list