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

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–2016 Aaron Patterson, Mike Dalessio, Charles Nutter, Sergio Arbeo
Patrick Mahoney, Yoko Harada, Akinori Musha, John Shahid
Licensed under the MIT License.

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部