HTMLDocument
final class HTMLDocument extends Document (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 | |
Implementation read-only | $implementation | from Document | |
string | $URL | from Document | |
string | $documentURI | from Document | |
string | $characterSet | from Document | |
string | $charset | from Document | |
string | $inputEncoding | from Document | |
DocumentType|null | $doctype | from Document | |
Element|null | $documentElement | from Document | |
Element|null | $firstElementChild | from Document | |
Element|null | $lastElementChild | from Document | |
int | $childElementCount | from Document | |
HTMLElement|null | $body | from Document | |
HTMLElement|null | $head | from Document | |
string | $title | from Document |
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
in
Node at line 220
Node
getRootNode(array $options = [])
No description
in
Node at line 224
bool
hasChildNodes()
No description
in
Node at line 235
void
normalize()
No description
in
Node at line 237
Node
cloneNode(bool $deep = false)
No description
in
Node at line 239
bool
isEqualNode(Node|null $otherNode)
No description
in
Node at line 241
bool
isSameNode(Node|null $otherNode)
No description
in
Node at line 249
int
compareDocumentPosition(Node $other)
No description
in
Node at line 251
bool
contains(Node|null $other)
No description
in
Node at line 253
string|null
lookupPrefix(string|null $namespace)
No description
in
Node at line 255
string|null
lookupNamespaceURI(string|null $prefix)
No description
in
Node at line 257
bool
isDefaultNamespace(string|null $namespace)
No description
in
Node at line 259
Node
insertBefore(Node $node, Node|null $child)
No description
in
Node at line 261
Node
appendChild(Node $node)
No description
in
Node at line 263
Node
replaceChild(Node $node, Node $child)
No description
in
Node at line 265
Node
removeChild(Node $child)
No description
in
Node at line 267
int
getLineNo()
No description
in
Node at line 269
string
getNodePath()
No description
in
Node at line 271
string|false
C14N(bool $exclusive = false, bool $withComments = false, array|null $xpath = null, array|null $nsPrefixes = null)
No description
in
Node at line 273
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 275
array
__sleep()
No description
in
Node at line 277
void
__wakeup()
No description
HTMLCollection
getElementsByTagName(string $qualifiedName)
No description
HTMLCollection
getElementsByTagNameNS(string|null $namespace, string $localName)
No description
Element
createElement(string $localName)
No description
Element
createElementNS(string|null $namespace, string $qualifiedName)
No description
DocumentFragment
createDocumentFragment()
No description
Text
createTextNode(string $data)
No description
CDATASection
createCDATASection(string $data)
No description
Comment
createComment(string $data)
No description
ProcessingInstruction
createProcessingInstruction(string $target, string $data)
No description
Node
importNode(Node|null $node, bool $deep = false)
No description
Attr
createAttribute(string $localName)
No description
Attr
createAttributeNS(string|null $namespace, string $qualifiedName)
No description
Element|null
getElementById(string $elementId)
No description
void
registerNodeClass(string $baseClass, string|null $extendedClass)
No description
bool
schemaValidate(string $filename, int $flags = 0)
No description
bool
schemaValidateSource(string $source, int $flags = 0)
No description
bool
relaxNgValidate(string $filename)
No description
bool
relaxNgValidateSource(string $source)
No description
void
append(Node|string ...$nodes)
No description
void
prepend(Node|string ...$nodes)
No description
void
replaceChildren(Node|string ...$nodes)
No description
Element|null
querySelector(string $selectors)
No description
NodeList
querySelectorAll(string $selectors)
No description
static HTMLDocument
createEmpty(string $encoding = "UTF-8")
No description
static HTMLDocument
createFromFile(string $path, int $options = 0, string|null $overrideEncoding = null)
No description
static HTMLDocument
createFromString(string $source, int $options = 0, string|null $overrideEncoding = null)
No description
string|false
saveXml(Node|null $node = null, int $options = 0)
No description
int|false
saveXmlFile(string $filename, int $options = 0)
No description
string
saveHtml(Node|null $node = null)
No description
int|false
saveHtmlFile(string $filename)
No description
int
debugGetTemplateCount()
No description