I know, but that IS the problem, see this updated version:
http://jsfiddle.net/victor/AWfeD/1/

it should only target the last div, because both selectors target the
'second' div

On Nov 21, 11:01 am, Oskar Krawczyk <[email protected]> wrote:
> Works fine in 1.2.5 as well.
>
> Your example adds colors to both divs, the top one and the bottom.
>
> On 2010-11-21, at 10:55, Vic wrote:
>
>
>
> > I now see that it does work correctly in MooTools 1.3, must have
> > something to do with slick? Still I would love to be able to do this
> > in my 1.2.4 code as well. This particular project cannot upgrade yet.
>
> > On Nov 21, 10:37 am, Vic <[email protected]> wrote:
> >> Hi,
>
> >> Is it correct that (MooTools 1.2.4/1.2.5) cannot succesfully select
> >> elements using css selectors by matching on custom data-* attributes?
> >> If I use the 'rel' or 'class' attribute the correct element gets
> >> selected,  but I would like to be able to use the data-* attributes
>
> >> View the example here:  http://jsfiddle.net/AWfeD/
>
> >> any ideas? thank you

Reply via email to