class Nokogiri::HTML5::Document

def fragment(markup = nil)


Nokogiri::HTML5::DocumentFragment. This object's children will be empty if `markup` is not passed, is empty, or is `nil`.
[Returns]

- +markup+ (String) The HTML5 markup fragment to be parsed
[Properties]

Parse a HTML5 document fragment from +markup+, returning a Nokogiri::HTML5::DocumentFragment.

fragment(markup) → Nokogiri::HTML5::DocumentFragment
fragment() → Nokogiri::HTML5::DocumentFragment
:call-seq:
def fragment(markup = nil)
  DocumentFragment.new(self, markup)
end