News for hackers. Stuff that matters.
Re:Introducing SelectorGadget: point and click minimal CSS s... by tectonic on Thursday February 26, 2009 @05:14PM (#496521)
Just so you know, there was, and may still be, an off-by-one error in Hpricot's implementation of nth-child that may confuse you when using the selectors generated by SelectorGadget.
Re:Introducing SelectorGadget: point and click minimal CSS s... by fizx on Thursday February 26, 2009 @05:52PM (#496568)
Re:Introducing SelectorGadget: point and click minimal CSS s... by mattjaynes on Thursday February 26, 2009 @05:45PM (#496558)
Great point. I haven't looked, but I think nokogiri fixes that bug. I think that was one tenderlove's motivations for creating nokogiri. He talks about it more on his blog:

http://tenderlovemaking.com/2008/10/30/nokogiri-is-released/

"I just want to tell you that you shouldn't worry about that old legacy code that uses Hpricot. Nokogiri can be used as a drop in replacement! Really! Nokogiri doesn't reproduce the bugs that are in Hpricot, but should work in most cases. Just use "Nokogir::Hpricot()" to parse your HTML. Of course, I've tried to keep the syntax of Hpricot that I like."