enfocus attribute based selector

15 views
Skip to first unread message

Carlos Sam Alisson Nunes

unread,
Apr 23, 2014, 9:55:05 AM4/23/14
to enf...@googlegroups.com
Hello,

Is there a way to select nodes based on attribute? In enlive you can use (attr= :href "foo"). Is there anything like this in enfocus? Will there be?

Thanks

Creighton Kirkendall

unread,
Apr 23, 2014, 10:06:22 AM4/23/14
to Enfocus
Carlos,
Yes, enfocus' standard way is to use the CSS3 string selectors like this "div[my-attr='tmp']".  Enfocus also supports enlive based selectors like so: [:div (attr= :href "foo")].  

Creighton


--

---
You received this message because you are subscribed to the Google Groups "Enfocus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to enfocus+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Carlos Sam Alisson Nunes

unread,
Apr 23, 2014, 10:08:43 AM4/23/14
to enf...@googlegroups.com
Thank you!
Reply all
Reply to author
Forward
0 new messages