From 605d5651044c2f7bab26f2327c7ad92b61913b53 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Sun, 15 Feb 2015 22:35:03 +0100 Subject: [PATCH] Use sax_parse_html for HTML documents. I suspect the only reason this test ever passed due to Racc's error handling. Either way this was using the wrong method. --- spec/oga/oga_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/oga/oga_spec.rb b/spec/oga/oga_spec.rb index 48e98ac..4e140fa 100644 --- a/spec/oga/oga_spec.rb +++ b/spec/oga/oga_spec.rb @@ -33,7 +33,7 @@ describe Oga do end it 'parses an HTML document using the SAX parser' do - Oga.sax_parse_xml(@handler, '') + Oga.sax_parse_html(@handler, '') @handler.name.should == 'link' end