class Nokogiri::HTML::Document::EncodingReader::JumpSAXHandler - nokogiri-1.10.3 Documentation

# class Nokogiri::HTML::Document::EncodingReader::JumpSAXHandler

### Public Class Methods

new(jumptag) click to toggle source
Calls superclass method

    # File lib/nokogiri/html/document.rb, line 241
    def initialize(jumptag)
      @jumptag = jumptag
      super()
    end

### Public Instance Methods

start_element(name, attrs = []) click to toggle source
Calls superclass method Nokogiri::XML::SAX::Document#start_element

    # File lib/nokogiri/html/document.rb, line 246
    def start_element(name, attrs = [])
      super
      throw @jumptag, @encoding if @encoding
      throw @jumptag, nil if name =~ /\A(?:div|h1|img|p|br)\z/
    end