oga/lib/oga/html/sax_parser.rb

19 lines
439 B
Ruby

module Oga
module HTML
##
# SAX parser for HTML documents. See the documentation of
# {Oga::XML::SaxParser} for more information.
#
class SaxParser < XML::SaxParser
##
# @see [Oga::XML::SaxParser#initialize]
#
def initialize(handler, data, options = {})
options = options.merge(:html => true)
super(handler, data, options)
end
end # SaxParser
end # HTML
end # Oga