first_html_par: build lists 'manually' when using Hpricot
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 18 Sep 2007 17:31:24 +0000 (17:31 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 18 Sep 2007 17:31:24 +0000 (17:31 +0000)
commitadb212bdfc678af04fa438b42ec06047a13a8f2c
tree4d7f0be9c6eb9e5e5cbef2ffc3e6d921b0064452
parent663a2b1553d400bca97c4490c82822d93dcf0a24
first_html_par: build lists 'manually' when using Hpricot

Hpricot selectors (like doc/"css path") don't return elements in their natural (depth-first) order. Use custom searches from the root of the document to achieve this.
lib/rbot/core/utils/utils.rb