Sha256: 3ac047202086f484c7341ded535dd6012f412fde5049f7425360f4ff9adca7e5

Contents?: true

Size: 1.51 KB

Versions: 472

Compression:

Stored size: 1.51 KB

Contents

# coding: utf-8
# frozen_string_literal: true

require_relative "html4"

module Nokogiri
  # Alias for Nokogiri::HTML4
  HTML = Nokogiri::HTML4

  # :singleton-method: HTML
  # :call-seq: HTML(input, url = nil, encoding = nil, options = XML::ParseOptions::DEFAULT_HTML, &block) → Nokogiri::HTML4::Document
  #
  # Parse HTML. Convenience method for Nokogiri::HTML4::Document.parse

  # :nodoc:
  define_singleton_method(:HTML, Nokogiri.method(:HTML4))

  # 💡 This module/namespace is an alias for Nokogiri::HTML4 as of v1.12.0. Before v1.12.0,
  #   Nokogiri::HTML4 did not exist, and this was the module/namespace for all HTML-related
  #   classes.
  module HTML
    # 💡 This class is an alias for Nokogiri::HTML4::Document as of v1.12.0.
    class Document < Nokogiri::XML::Document
    end

    # 💡 This class is an alias for Nokogiri::HTML4::DocumentFragment as of v1.12.0.
    class DocumentFragment < Nokogiri::XML::DocumentFragment
    end

    # 💡 This class is an alias for Nokogiri::HTML4::Builder as of v1.12.0.
    class Builder < Nokogiri::XML::Builder
    end

    module SAX
      # 💡 This class is an alias for Nokogiri::HTML4::SAX::Parser as of v1.12.0.
      class Parser < Nokogiri::XML::SAX::Parser
      end

      # 💡 This class is an alias for Nokogiri::HTML4::SAX::ParserContext as of v1.12.0.
      class ParserContext < Nokogiri::XML::SAX::ParserContext
      end

      # 💡 This class is an alias for Nokogiri::HTML4::SAX::PushParser as of v1.12.0.
      class PushParser
      end
    end
  end
end

Version data entries

472 entries across 469 versions & 12 rubygems

Version Path
nokogiri-1.15.7-x86-mingw32 lib/nokogiri/html.rb
nokogiri-1.15.7-x86-linux lib/nokogiri/html.rb
nokogiri-1.15.7-x86_64-linux lib/nokogiri/html.rb
nokogiri-1.15.7-x86_64-darwin lib/nokogiri/html.rb
nokogiri-1.15.7-x64-mingw-ucrt lib/nokogiri/html.rb
nokogiri-1.15.7-x64-mingw32 lib/nokogiri/html.rb
nokogiri-1.15.7-java lib/nokogiri/html.rb
nokogiri-1.15.7 lib/nokogiri/html.rb
nokogiri-1.15.7-arm-linux lib/nokogiri/html.rb
nokogiri-1.15.7-arm64-darwin lib/nokogiri/html.rb
nokogiri-1.15.7-aarch64-linux lib/nokogiri/html.rb
nokogiri-1.16.8-x86-mingw32 lib/nokogiri/html.rb
nokogiri-1.16.8-x86-linux lib/nokogiri/html.rb
nokogiri-1.16.8-x86_64-linux lib/nokogiri/html.rb
nokogiri-1.16.8-x86_64-darwin lib/nokogiri/html.rb
nokogiri-1.16.8-x64-mingw-ucrt lib/nokogiri/html.rb
nokogiri-1.16.8-x64-mingw32 lib/nokogiri/html.rb
nokogiri-1.16.8-java lib/nokogiri/html.rb
nokogiri-1.16.8 lib/nokogiri/html.rb
nokogiri-1.16.8-arm-linux lib/nokogiri/html.rb