I'm getting a segfault in nokogiri (1.4.1) run (under cucumber 0.6.1/webrat 0.7.0/rspec 1.3.x)
response.should have_selector("div", :class => "fieldWithErrors")
and the div in the page is actually
<div class="fieldWithErrors validation_error"> stuff </div>
Everything runs fine if I just test nokogiri against a test document
>> require 'nokogiri'
>> doc = Nokogiri::HTML.parse("<div class='a b'>love to have problems</div>")
=> ...
>> doc.css(".a")
=> [#<Nokogiri::XML::Element:0x3d62ac name="div" attributes=[#<Nokogiri::XML::Attr:0x3d6258 name="class" value="a b">] children=[#<Nokogiri::XML::Text:0x3d5e68 "love to have problems">]>]
So I want to know how to setup a minimal webrat test of an html fragment document to help file a bug.