element + next selector
maxprokopiev opened this issue · 2 comments
maxprokopiev commented
Hi!
There is an 'element + next' selector in jQuery (e.g. $("div + p")
see here). How I can get similar functionality with enlive? Or maybe you're planning to add this feature?
cgrand commented
It can be somehow done (ie not as [:div :+ :p]
but as [[:p (left :div)]]
).
As a tangential note, Enliven (that should succeed to Enlive) supports "div + p"
as a selector https://github.com/cgrand/enliven/blob/master/src/enliven/html.clj#L55
maxprokopiev commented
@cgrand thanks!