class Nokogiri::HTML4::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 /\A(?:div|h1|img|p|br)\z/.match?(name)
end