Class: Oga::HTML::SaxParser
- Inherits:
-
XML::SaxParser
- Object
- LL::Driver
- XML::Parser
- XML::SaxParser
- Oga::HTML::SaxParser
- Defined in:
- lib/oga/html/sax_parser.rb
Overview
SAX parser for HTML documents. See the documentation of XML::SaxParser for more information.
Constant Summary
Constants inherited from XML::Parser
XML::Parser::CONFIG, XML::Parser::TOKEN_ERROR_MAPPING
Instance Method Summary collapse
-
#initialize(handler, data, options = {}) ⇒ SaxParser
constructor
A new instance of SaxParser.
Methods inherited from XML::SaxParser
#after_element, #on_attribute, #on_attributes, #on_element, #on_text
Methods inherited from XML::Parser
#_rule_0, #_rule_1, #_rule_10, #_rule_11, #_rule_12, #_rule_13, #_rule_14, #_rule_15, #_rule_16, #_rule_17, #_rule_18, #_rule_19, #_rule_2, #_rule_20, #_rule_21, #_rule_22, #_rule_23, #_rule_24, #_rule_25, #_rule_26, #_rule_27, #_rule_28, #_rule_29, #_rule_3, #_rule_30, #_rule_31, #_rule_32, #_rule_33, #_rule_34, #_rule_35, #_rule_36, #_rule_37, #_rule_38, #_rule_39, #_rule_4, #_rule_40, #_rule_41, #_rule_42, #_rule_43, #_rule_44, #_rule_45, #_rule_5, #_rule_6, #_rule_7, #_rule_8, #_rule_9, #after_element, #each_token, #on_attribute, #on_attributes, #on_cdata, #on_comment, #on_doctype, #on_document, #on_element, #on_element_children, #on_proc_ins, #on_text, #on_xml_decl, #parse, #parser_error, #reset
Constructor Details
#initialize(handler, data, options = {}) ⇒ SaxParser
Returns a new instance of SaxParser.
11 12 13 14 15 |
# File 'lib/oga/html/sax_parser.rb', line 11 def initialize(handler, data, = {}) = .merge(:html => true) super(handler, data, ) end |