Re: Using $$ within an element.

Mark Holton
Mon, 04 Jun 2007 07:36:20 -0000

...I''m going to be looking at the css3-selectors reference often in the
next
month.  That''ll be a fun one to master, thanks for the reference!


On 6/4/07, Christophe Porteneuve
<tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org>
wrote:
>
>
> Mark Holton a écrit :
> > Chris,
> > Many thanks!  I did not know about ''first-child'' or
''>'' ... have been
> > using $$(''a''), $$(''#foo''), etc for
grabbing arrays of links, divs, etc.
> > ...this takes it a step further!  ...the power of Prototype is
awesome.
>
> $$(''#x'') is actually a convoluted, slower way of doing
$(''x'')...
>
> Just look at the online ref [1], and dive into the CSS3 Selectors [2]
> spec.  Plenty of jewels in there.
>
> [1] http://prototypejs.org/api/utility/dollar-dollar
> [2] http://www.w3.org/TR/css3-selectors/
>
> --
> Christophe Porteneuve a.k.a. TDD
> "[They] did not know it was impossible, so they did it." --Mark
Twain
> Email: tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org
>
> >
>