module Nokogiri::HTML4

def fragment(string, encoding = nil, options = XML::ParseOptions::DEFAULT_HTML, &block)

Parse a fragment from +string+ in to a NodeSet.
###
def fragment(string, encoding = nil, options = XML::ParseOptions::DEFAULT_HTML, &block)
  HTML4::DocumentFragment.parse(string, encoding, options, &block)
end

def parse(input, url = nil, encoding = nil, options = XML::ParseOptions::DEFAULT_HTML, &block)

Parse HTML. Convenience method for Nokogiri::HTML4::Document.parse
##
def parse(input, url = nil, encoding = nil, options = XML::ParseOptions::DEFAULT_HTML, &block)
  Document.parse(input, url, encoding, options, &block)
end