You are here

public function DOMTreeBuilder::fragment in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/masterminds/html5/src/HTML5/Parser/DOMTreeBuilder.php \Masterminds\HTML5\Parser\DOMTreeBuilder::fragment()

Get the DOM fragment for the body.

This returns a DOMNodeList because a fragment may have zero or more DOMNodes at its root.

Return value

\DOMFragmentDocumentFragment

See also

http://www.w3.org/TR/2012/CR-html5-20121217/syntax.html#concept-frag-par...

File

vendor/masterminds/html5/src/HTML5/Parser/DOMTreeBuilder.php, line 221

Class

DOMTreeBuilder
Create an HTML5 DOM tree from events.

Namespace

Masterminds\HTML5\Parser

Code

public function fragment() {
  return $this->frag;
}