DocumentFragment
class DocumentFragment extends Node implements ParentNode (View source)
Constants
| DOCUMENT_POSITION_DISCONNECTED |
|
| DOCUMENT_POSITION_PRECEDING |
|
| DOCUMENT_POSITION_FOLLOWING |
|
| DOCUMENT_POSITION_CONTAINS |
|
| DOCUMENT_POSITION_CONTAINED_BY |
|
| DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC |
|
Properties
| int | $nodeType | from Node | |
| string | $nodeName | from Node | |
| string | $baseURI | from Node | |
| bool | $isConnected | from Node | |
| Document|null | $ownerDocument | from Node | |
| Node|null | $parentNode | from Node | |
| Element|null | $parentElement | from Node | |
| Node> | $childNodes | from Node | |
| Node|null | $firstChild | from Node | |
| Node|null | $lastChild | from Node | |
| Node|null | $previousSibling | from Node | |
| Node|null | $nextSibling | from Node | |
| string|null | $nodeValue | from Node | |
| string|null | $textContent | from Node | |
| Element|null | $firstElementChild | ||
| Element|null | $lastElementChild | ||
| int | $childElementCount | ||
|
HTMLCollection
Since: 8.5
|
$children |
Methods
No description
No description
No description
Returns the first element that matches the CSS selectors
No description
Details
in
Node at line 362
Node
getRootNode(array $options = [])
No description
in
Node at line 366
bool
hasChildNodes()
No description
in
Node at line 377
void
normalize()
No description
in
Node at line 379
Node
cloneNode(bool $deep = false)
No description
in
Node at line 381
bool
isEqualNode(Node|null $otherNode)
No description
in
Node at line 383
bool
isSameNode(Node|null $otherNode)
No description
in
Node at line 391
int
compareDocumentPosition(Node $other)
No description
in
Node at line 393
bool
contains(Node|null $other)
No description
in
Node at line 395
string|null
lookupPrefix(string|null $namespace)
No description
in
Node at line 397
string|null
lookupNamespaceURI(string|null $prefix)
No description
in
Node at line 399
bool
isDefaultNamespace(string|null $namespace)
No description
in
Node at line 401
Node
insertBefore(Node $node, Node|null $child)
No description
in
Node at line 403
Node
appendChild(Node $node)
No description
in
Node at line 405
Node
replaceChild(Node $node, Node $child)
No description
in
Node at line 407
Node
removeChild(Node $child)
No description
in
Node at line 409
int
getLineNo()
No description
in
Node at line 411
string
getNodePath()
No description
in
Node at line 413
string|false
C14N(bool $exclusive = false, bool $withComments = false, array|null $xpath = null, array|null $nsPrefixes = null)
No description
in
Node at line 415
int|false
C14NFile(string $uri, bool $exclusive = false, bool $withComments = false, array|null $xpath = null, array|null $nsPrefixes = null)
No description
in
Node at line 417
array
__sleep()
No description
in
Node at line 419
void
__wakeup()
No description
bool
appendXml(string $data)
No description
void
append(Node|string ...$nodes)
Appends nodes after the last child node
Appends one or many nodes to the list of children after the last child node.
void
prepend(Node|string ...$nodes)
Prepends nodes before the first child node
Prepends one or many nodes to the list of children before the first child node.
void
replaceChildren(Node|string ...$nodes)
Replace children in node
Element|null
querySelector(string $selectors)
Returns the first element that matches the CSS selectors
Returns the first element that matches the CSS selectors specified in selectors.
NodeList
querySelectorAll(string $selectors)
No description