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:
parent
dd626c10d3
commit
605d565104
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue