Method: Nokogiri::HTML4::EncodingReader::JumpSAXHandler#start_element

Defined in:
lib/nokogiri/html4/encoding_reader.rb

#start_element(name, attrs = []) ⇒ Object



52
53
54
55
56
# File 'lib/nokogiri/html4/encoding_reader.rb', line 52

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