class Nokogiri::HTML4::Document::EncodingReader::JumpSAXHandler

def initialize(jumptag)

def initialize(jumptag)
  @jumptag = jumptag
  super()
end

def start_element(name, attrs = [])

def start_element(name, attrs = [])
  super
  throw @jumptag, @encoding if @encoding
  throw @jumptag, nil if name =~ /\A(?:div|h1|img|p|br)\z/
end