class Nokogiri::HTML5::DocumentFragment

def initialize(doc, tags = nil, ctx = nil, options = {})

Create a document fragment.
def initialize(doc, tags = nil, ctx = nil, options = {})
  self.document = doc
  self.errors = []
  return self unless tags
  max_attributes = options[:max_attributes] || Nokogumbo::DEFAULT_MAX_ATTRIBUTES
  max_errors = options[:max_errors] || Nokogumbo::DEFAULT_MAX_ERRORS
  max_depth = options[:max_tree_depth] || Nokogumbo::DEFAULT_MAX_TREE_DEPTH
  tags = Nokogiri::HTML5.read_and_encode(tags, nil)
  Nokogumbo.fragment(self, tags, ctx, max_attributes, max_errors, max_depth)
end