# File lib/nokogiri/xml/node.rb, line 422 def fragment tags type = document.html? ? Nokogiri::HTML : Nokogiri::XML type::DocumentFragment.new(document, tags, self) end