php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
Dom\HTMLDocument Class Reference
Inheritance diagram for Dom\HTMLDocument:
Dom\Document Dom\Node Dom\ParentNode

Public Member Functions

 saveXml (?Node $node=null, int $options=0)
 
 saveXmlFile (string $filename, int $options=0)
 
 saveHtml (?Node $node=null)
 
 saveHtmlFile (string $filename)
 
 debugGetTemplateCount ()
 
- Public Member Functions inherited from Dom\Document
 getElementsByTagName (string $qualifiedName)
 
 getElementsByTagNameNS (?string $namespace, string $localName)
 
 createElement (string $localName)
 
 createElementNS (?string $namespace, string $qualifiedName)
 
 createDocumentFragment ()
 
 createTextNode (string $data)
 
 createCDATASection (string $data)
 
 createComment (string $data)
 
 createProcessingInstruction (string $target, string $data)
 
 importNode (?Node $node, bool $deep=false)
 
 adoptNode (Node $node)
 
 createAttribute (string $localName)
 
 createAttributeNS (?string $namespace, string $qualifiedName)
 
 getElementById (string $elementId)
 
 registerNodeClass (string $baseClass, ?string $extendedClass)
 
 schemaValidate (string $filename, int $flags=0)
 
 schemaValidateSource (string $source, int $flags=0)
 
 relaxNgValidate (string $filename)
 
 relaxNgValidateSource (string $source)
 
 append (Node|string ... $nodes)
 
 prepend (Node|string ... $nodes)
 
 replaceChildren (Node|string ... $nodes)
 
 importLegacyNode (\DOMNode $node, bool $deep=false)
 
 querySelector (string $selectors)
 
 querySelectorAll (string $selectors)
 
- Public Member Functions inherited from Dom\Node
 getRootNode (array $options=[])
 
 hasChildNodes ()
 
 normalize ()
 
 cloneNode (bool $deep=false)
 
 isEqualNode (?Node $otherNode)
 
 isSameNode (?Node $otherNode)
 
 compareDocumentPosition (Node $other)
 
 contains (?Node $other)
 
 lookupPrefix (?string $namespace)
 
 lookupNamespaceURI (?string $prefix)
 
 isDefaultNamespace (?string $namespace)
 
 insertBefore (Node $node, ?Node $child)
 
 appendChild (Node $node)
 
 replaceChild (Node $node, Node $child)
 
 removeChild (Node $child)
 
 getLineNo ()
 
 getNodePath ()
 
 C14N (bool $exclusive=false, bool $withComments=false, ?array $xpath=null, ?array $nsPrefixes=null)
 
 C14NFile (string $uri, bool $exclusive=false, bool $withComments=false, ?array $xpath=null, ?array $nsPrefixes=null)
 
 __sleep ()
 
 __wakeup ()
 

Static Public Member Functions

static createEmpty (string $encoding="UTF-8")
 
static createFromFile (string $path, int $options=0, ?string $overrideEncoding=null)
 
static createFromString (string $source, int $options=0, ?string $overrideEncoding=null)
 

Additional Inherited Members

- Data Fields inherited from Dom\Document
Implementation $implementation
 
string $URL
 
string $documentURI
 
string $characterSet
 
string $charset
 
string $inputEncoding
 
DocumentType $doctype
 
Element $documentElement
 
Element $firstElementChild
 
Element $lastElementChild
 
int $childElementCount
 
HTMLElement $body
 
HTMLElement $head
 
string $title
 
- Data Fields inherited from Dom\Node
int $nodeType
 
string $nodeName
 
string $baseURI
 
bool $isConnected
 
Document $ownerDocument
 
Node $parentNode
 
Element $parentElement
 
NodeList $childNodes
 
Node $firstChild
 
Node $lastChild
 
Node $previousSibling
 
Node $nextSibling
 
string $nodeValue
 
string $textContent
 
const int DOCUMENT_POSITION_DISCONNECTED = 0x01
 
const int DOCUMENT_POSITION_PRECEDING = 0x02
 
const int DOCUMENT_POSITION_FOLLOWING = 0x04
 
const int DOCUMENT_POSITION_CONTAINS = 0x08
 
const int DOCUMENT_POSITION_CONTAINED_BY = 0x10
 
const int DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20
 

Detailed Description

Definition at line 2034 of file php_dom.stub.php.

Member Function Documentation

◆ createEmpty()

static Dom\HTMLDocument::createEmpty ( string $encoding = "UTF-8")
static

Definition at line 2036 of file php_dom.stub.php.

◆ createFromFile()

static Dom\HTMLDocument::createFromFile ( string $path,
int $options = 0,
?string $overrideEncoding = null )
static

Definition at line 2038 of file php_dom.stub.php.

◆ createFromString()

static Dom\HTMLDocument::createFromString ( string $source,
int $options = 0,
?string $overrideEncoding = null )
static

Definition at line 2040 of file php_dom.stub.php.

◆ debugGetTemplateCount()

Dom\HTMLDocument::debugGetTemplateCount ( )

Definition at line 2053 of file php_dom.stub.php.

◆ saveHtml()

Dom\HTMLDocument::saveHtml ( ?Node $node = null)

Definition at line 2048 of file php_dom.stub.php.

◆ saveHtmlFile()

Dom\HTMLDocument::saveHtmlFile ( string $filename)

Definition at line 2050 of file php_dom.stub.php.

◆ saveXml()

Dom\HTMLDocument::saveXml ( ?Node $node = null,
int $options = 0 )

@implementation-alias Dom\XMLDocument::saveXml

Definition at line 2043 of file php_dom.stub.php.

◆ saveXmlFile()

Dom\HTMLDocument::saveXmlFile ( string $filename,
int $options = 0 )

@implementation-alias DOMDocument\save

Definition at line 2046 of file php_dom.stub.php.


The documentation for this class was generated from the following file: