Skip to content

HTML5TreeConstructer

  • Full name: \HTML5TreeConstructer

Constants

Constant Visibility Type Value
INIT_PHASE public 0
ROOT_PHASE public 1
MAIN_PHASE public 2
END_PHASE public 3
BEFOR_HEAD public 0
IN_HEAD public 1
AFTER_HEAD public 2
IN_BODY public 3
IN_TABLE public 4
IN_CAPTION public 5
IN_CGROUP public 6
IN_TBODY public 7
IN_ROW public 8
IN_CELL public 9
IN_SELECT public 10
AFTER_BODY public 11
IN_FRAME public 12
AFTR_FRAME public 13
SPECIAL public 0
SCOPING public 1
FORMATTING public 2
PHRASING public 3
MARKER public 0

Properties

stack

public $stack

phase

private $phase

mode

private $mode

dom

private $dom

foster_parent

private $foster_parent

a_formatting

private $a_formatting

head_pointer

private $head_pointer

form_pointer

private $form_pointer

scoping

private $scoping

formatting

private $formatting

special

private $special

Methods

__construct

public __construct(): mixed

emitToken

public emitToken(mixed $token): mixed

Parameters:

Parameter Type Description
$token mixed

initPhase

private initPhase(mixed $token): mixed

Parameters:

Parameter Type Description
$token mixed

rootElementPhase

private rootElementPhase(mixed $token): mixed

Parameters:

Parameter Type Description
$token mixed

mainPhase

private mainPhase(mixed $token): mixed

Parameters:

Parameter Type Description
$token mixed

beforeHead

private beforeHead(mixed $token): mixed

Parameters:

Parameter Type Description
$token mixed

inHead

private inHead(mixed $token): mixed

Parameters:

Parameter Type Description
$token mixed

afterHead

private afterHead(mixed $token): mixed

Parameters:

Parameter Type Description
$token mixed

inBody

private inBody(mixed $token): mixed

Parameters:

Parameter Type Description
$token mixed

inTable

private inTable(mixed $token): mixed

Parameters:

Parameter Type Description
$token mixed

inCaption

private inCaption(mixed $token): mixed

Parameters:

Parameter Type Description
$token mixed

inColumnGroup

private inColumnGroup(mixed $token): mixed

Parameters:

Parameter Type Description
$token mixed

inTableBody

private inTableBody(mixed $token): mixed

Parameters:

Parameter Type Description
$token mixed

inRow

private inRow(mixed $token): mixed

Parameters:

Parameter Type Description
$token mixed

inCell

private inCell(mixed $token): mixed

Parameters:

Parameter Type Description
$token mixed

inSelect

private inSelect(mixed $token): mixed

Parameters:

Parameter Type Description
$token mixed

afterBody

private afterBody(mixed $token): mixed

Parameters:

Parameter Type Description
$token mixed

inFrameset

private inFrameset(mixed $token): mixed

Parameters:

Parameter Type Description
$token mixed

afterFrameset

private afterFrameset(mixed $token): mixed

Parameters:

Parameter Type Description
$token mixed

trailingEndPhase

private trailingEndPhase(mixed $token): mixed

Parameters:

Parameter Type Description
$token mixed

insertElement

private insertElement(mixed $token, mixed $append = true, mixed $check = false): mixed

Parameters:

Parameter Type Description
$token mixed
$append mixed
$check mixed

insertText

private insertText(mixed $data): mixed

Parameters:

Parameter Type Description
$data mixed

insertComment

private insertComment(mixed $data): mixed

Parameters:

Parameter Type Description
$data mixed

appendToRealParent

private appendToRealParent(mixed $node): mixed

Parameters:

Parameter Type Description
$node mixed

elementInScope

private elementInScope(mixed $el, mixed $table = false): mixed

Parameters:

Parameter Type Description
$el mixed
$table mixed

reconstructActiveFormattingElements

private reconstructActiveFormattingElements(): mixed

clearTheActiveFormattingElementsUpToTheLastMarker

private clearTheActiveFormattingElementsUpToTheLastMarker(): mixed

generateImpliedEndTags

private generateImpliedEndTags(mixed $exclude = array()): mixed

Parameters:

Parameter Type Description
$exclude mixed

getElementCategory

private getElementCategory(mixed $node): mixed

Parameters:

Parameter Type Description
$node mixed

clearStackToTableContext

private clearStackToTableContext(mixed $elements): mixed

Parameters:

Parameter Type Description
$elements mixed

resetInsertionMode

private resetInsertionMode(): mixed

closeCell

private closeCell(): mixed

save

public save(): mixed


Automatically generated on 2025-03-18