123456789_123456789_123456789_123456789_123456789_

Class: Nokogiri::HTML::SAX::ParserContext

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Nokogiri::XML::SAX::ParserContext
Defined in: lib/nokogiri/html.rb

Overview

šŸ’” This class is an alias for ::Nokogiri::HTML4::SAX::ParserContext as of v1.12.0.

Class Method Summary

::Nokogiri::XML::SAX::ParserContext - Inherited

.file

Create a parser context for the file at path.

.io

Create a parser context for an input IO which will assume encoding

.memory

Create a parser context for the input String.

.new

Create a parser context for an IO or a String.

.resolve_encoding, .native_file, .native_io, .native_memory

Instance Attribute Summary

::Nokogiri::XML::SAX::ParserContext - Inherited

#recovery

Inspect whether this parser will recover from parsing errors.

#recovery=

Controls whether this parser will recover from parsing errors.

#replace_entities

See Document@Entity+Handling for an explanation of the behavior controlled by this flag.

#replace_entities=

See Document@Entity+Handling for an explanation of the behavior controlled by this flag.

Instance Method Summary

::Nokogiri::XML::SAX::ParserContext - Inherited

#column
Returns

(Integer) the column number of the column being currently parsed.

#line
Returns

(Integer) the line number of the line being currently parsed.

#parse_with

Use sax_handler and parse the current document.

Constructor Details

This class inherits a constructor from Nokogiri::XML::SAX::ParserContext