Nokogiri::HTML::Document::EncodingReader::JumpSAXHandler
class Nokogiri::HTML::Document::EncodingReader::JumpSAXHandler
Public Class Methods
Calls superclass method
# File lib/nokogiri/html/document.rb, line 241 def initialize(jumptag) @jumptag = jumptag super() end
Public Instance Methods
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–2016 Aaron Patterson, Mike Dalessio, Charles Nutter, Sergio Arbeo
Patrick Mahoney, Yoko Harada, Akinori Musha, John Shahid
Licensed under the MIT License.