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.
This commit is contained in:
Yorick Peterse 2015-02-15 22:35:03 +01:00
parent dd626c10d3
commit 605d565104
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ describe Oga do
end
it 'parses an HTML document using the SAX parser' do
Oga.sax_parse_xml(@handler, '<link>')
Oga.sax_parse_html(@handler, '<link>')
@handler.name.should == 'link'
end