[Nokogiri-talk] problem after upgrading from 1.1.0 to 1.2.3

Xavi Caballé xavi.caballe at gmail.com
Tue May 12 12:50:32 EDT 2009

This is on a Mac, running Leopard. I was using Nokogiri 1.1.0 and I've
upgraded to 1.2.3 . Now when I run the first example...

require 'open-uri'
require 'nokogiri'

# Perform a google search
doc = Nokogiri::HTML(open('http://google.com/search?q=tenderlove'))

# Print out each link using a CSS selector
doc.css('h3.r > a.l').each do |link|
  puts link.content

...it doesn't print anything. If I print the value of doc (puts doc),
this is what's displayed...

<!DOCTYPE html>

and that's all! I guess that's what's not expected, and now I have a
broken installation of Nokogiri. Any idea on what can be the problem?
I would really appreciate it.


More information about the Nokogiri-talk mailing list