Slick rocks
On Oct 18, 6:49 pm, Fábio M. Costa <fabio.co...@corp.globo.com> wrote: > You can define a pseudo-class that does this. The CSS3 specification doesn't > include a pseudo-class that does this. In fact even the contains pseudo isnt > into the specification anymore (as seen > herehttp://www.w3.org/TR/css3-selectors/#content-selectors) but we include it > as > a plus. > > To define a pseudo-class you can do: > > http://www.jsfiddle.net/CVWFV/2/ > > Of course the you can choose any name you want. > > -- > Fábio Miranda Costa > front...@portalpadroes > Globo.com > *github:* fabiomcosta > *twitter:* @fabiomiranda > *ramal:* 6410 > > > > On Mon, Oct 18, 2010 at 11:17 AM, Andrea Dessì <nkj...@gmail.com> wrote: > > yep, but I was trying to find just the one which > > contains exactly "my text" or get null :) > > > note this:http://www.jsfiddle.net/CVWFV/ > > > how to do that? > > -- > > Andrea > > > 2010/10/18 Fábio M. Costa <fabio.co...@corp.globo.com> > > > You can use the "contains" pseudo-class. > > >> $$('a:contains("my text")') > > >> -- > >> Fábio Miranda Costa > >> front...@portalpadroes > >> Globo.com > >> *github:* fabiomcosta > >> *twitter:* @fabiomiranda > >> *ramal:* 6410 > > >> On Mon, Oct 18, 2010 at 10:21 AM, Andrea Dessì <nkj...@gmail.com> wrote: > > >>> Hi all :) > > >>> I've started with Slick and MooTools 1.3 just today and here > >>> the first question. > > >>> With the 1.2, I used to do: > >>> $("myparent").getElement("a[text=XXX]"); > > >>> and now with 1.3, I'm trying this: > >>> document.id("myparent").getElement("a[^XXX$]"); > > >>> but sometimes I'm not getting the right one. > >>> is this the right syntax? > > >>> Thanks, > >>> Andrea