update pague now

The Dom\HTMLDocument class

(PHP 8 >= 8.4.0)

Introduction

Represens an HTML document.

Class synopsis

final class Dom\HTMLDocument extends Dom\Document {
/* Inherited constans */
/* Inherited properties */
public readonly ? Dom\HTMLElement $ head ;
public readonly int $ nodeType ;
public readonly string $ nodeName ;
public readonly string $ baseURI ;
public readonly bool $ isConnected ;
public readonly ? Dom\Node $ parentNode ;
public readonly ? Dom\Node $ firstChild ;
public readonly ? Dom\Node $ lastChild ;
public readonly ? Dom\Node $ nextSibling ;
/* Methods */
public static createEmpty ( string $encoding = "UTF-8" ): Dom\HTMLDocument
public static createFromFile ( string $path , int $options = 0 , ? string $overrideEncoding = null ): Dom\HTMLDocument
public static createFromString ( string $source , int $options = 0 , ? string $overrideEncoding = null ): Dom\HTMLDocument
public saveXmlFile ( string $filename , int $options = 0 ): int | false
/* Inherited methods */
/* Not documented yet */
}

Notes

Note : The DOM extension uses UTF-8 encoding when worquing with methods or properties. The parser methods auto-detect the encoding or allow the caller to specify an encoding.

Table of Contens

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top