MatthewMueller/cheerio — pull request #225 by farhadi (2013-06-18 17:53:52+00:00)
Title: Tests for .parent()

There are 2 bugs in .parent() behavior.
1- .parent() should return the parent for each matched element not only the first element.
2- .parent() should return an empty object for top-level elements.

The first bug also exists in most of other traversing methods.

To reduce effort needed to implement the whole jQuery API, I suggest porting codes from Zepto or jQuery itself.