class Nokogiri::HTML5::Document
def fragment(markup = nil)
passed, is empty, or is +nil+.
Nokogiri::HTML5::DocumentFragment. This object's children will be empty if +markup+ is not
[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