Skip to content

Instantly share code, notes, and snippets.

@jmhodges
Created May 16, 2009 21:54
Show Gist options
  • Save jmhodges/112821 to your computer and use it in GitHub Desktop.
Save jmhodges/112821 to your computer and use it in GitHub Desktop.
# Nokogiri 1.2.4
irb(main):001:0> j = Nokogiri::HTML.parse('<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">')
=> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></head></html>
irb(main):002:0> j.at('meta')
/opt/local/lib/ruby/gems/1.8/gems/nokogiri-1.2.4/lib/nokogiri/xml/node.rb:634: [BUG] Segmentation fault
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment