W3cubDocs

/Nokogiri

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

Parent:
Nokogiri::HTML::Document::EncodingReader::SAXHandler

Public Class Methods

new(jumptag) Show 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 = []) Show source
Calls superclass method
# 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

© 2008–2017 Aaron Patterson, Mike Dalessio, Charles Nutter, Sergio Arbeo
Patrick Mahoney, Yoko Harada, Akinori Musha, John Shahid
Licensed under the MIT License.