MatthewMueller/cheerio — Issue #6: Add selector filtering support for parent(), next(), and prev()
Author: MatthewMueller
Created: 2011-11-06 07:23:33+00:00
State: open

In jQuery you can do this:
$('.pear').prev('.apple');

This lets you write much more robust code. Currently in cheerio, if you add an element between apple and pear, your code will break.