Hey there!

jdalton a écrit :
> I am trying to do something like $$('a:contains("next >")');
> but I get a js error when executing that.

I'd really like you to tell me what exactly you think this selector
should fetch...  It's not a CSS3 selector at all (:contains does not
seem to be part of the CSS 3 Selectors spec).

At "worst," and assuming I guess your intent correctly, you can emulate
it like so (untested, but should do well enough):

$$('a').select(function(link) {
  return link.innerHTML.stripTags().include('next >');
})

'HTH

-- 
Christophe Porteneuve a.k.a. TDD
"[They] did not know it was impossible, so they did it." --Mark Twain
Email: [EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to