class Nokogiri::HTML::Document::EncodingReader::JumpSAXHandler - nokogiri-1.6.6.2 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 239
    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 244
    def start_element(name, attrs = [])
      super
      throw @jumptag, @encoding if @encoding
      throw @jumptag, nil if name =~ /\A(?:div|h1|img|p|br)\z/
    end