Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DOMTreeBuilder.php

function 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

\DOMDocumentFragment

See also

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

File

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

Class

DOMTreeBuilder
Create an HTML5 DOM tree from events.

Namespace

Masterminds\HTML5\Parser

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal