\HTML5TreeConstructer
Synopsis
class HTML5TreeConstructer
{
- // constants
- const INIT_PHASE = 0;
- const ROOT_PHASE = 1;
- const MAIN_PHASE = 2;
- const END_PHASE = 3;
- const BEFOR_HEAD = 0;
- const IN_HEAD = 1;
- const AFTER_HEAD = 2;
- const IN_BODY = 3;
- const IN_TABLE = 4;
- const IN_CAPTION = 5;
- const IN_CGROUP = 6;
- const IN_TBODY = 7;
- const IN_ROW = 8;
- const IN_CELL = 9;
- const IN_SELECT = 10;
- const AFTER_BODY = 11;
- const IN_FRAME = 12;
- const AFTR_FRAME = 13;
- const SPECIAL = 0;
- const SCOPING = 1;
- const FORMATTING = 2;
- const PHRASING = 3;
- const MARKER = 0;
- // members
- public array $stack = ;
- private $phase;
- private $mode;
- private $dom;
- private $foster_parent = NULL;
- private array $a_formatting = ;
- private $head_pointer = NULL;
- private $form_pointer = NULL;
- private array $scoping = ;
- private array $formatting = ;
- private array $special = ;
- // methods
- public void __construct()
- public void emitToken()
- private void initPhase()
- private void rootElementPhase()
- private void mainPhase()
- private void beforeHead()
- private void inHead()
- private void afterHead()
- private void inBody()
- private void inTable()
- private void inCaption()
- private void inColumnGroup()
- private void inTableBody()
- private void inRow()
- private void inCell()
- private void inSelect()
- private void afterBody()
- private void inFrameset()
- private void afterFrameset()
- private void trailingEndPhase()
- private void insertElement()
- private void insertText()
- private void insertComment()
- private void appendToRealParent()
- private void elementInScope()
- private void reconstructActiveFormattingElements()
- private void clearTheActiveFormattingElementsUpToTheLastMarker()
- private void generateImpliedEndTags()
- private void getElementCategory()
- private void clearStackToTableContext()
- private void resetInsertionMode()
- private void closeCell()
- public void save()
Constants
Name | Value |
---|---|
INIT_PHASE | 0 |
ROOT_PHASE | 1 |
MAIN_PHASE | 2 |
END_PHASE | 3 |
BEFOR_HEAD | 0 |
IN_HEAD | 1 |
AFTER_HEAD | 2 |
IN_BODY | 3 |
IN_TABLE | 4 |
IN_CAPTION | 5 |
IN_CGROUP | 6 |
IN_TBODY | 7 |
IN_ROW | 8 |
IN_CELL | 9 |
IN_SELECT | 10 |
AFTER_BODY | 11 |
IN_FRAME | 12 |
AFTR_FRAME | 13 |
SPECIAL | 0 |
SCOPING | 1 |
FORMATTING | 2 |
PHRASING | 3 |
MARKER | 0 |
Members
private
- $a_formatting
- $dom
- $form_pointer
- $formatting
- $foster_parent
- $head_pointer
- $mode
- $phase
- $scoping
- $special
public
- $stack
Methods
private
- afterBody()
- afterFrameset()
- afterHead()
- appendToRealParent()
- beforeHead()
- clearStackToTableContext()
- clearTheActiveFormattingElementsUpToTheLastMarker()
- closeCell()
- elementInScope()
- generateImpliedEndTags()
- getElementCategory()
- inBody()
- inCaption()
- inCell()
- inColumnGroup()
- inFrameset()
- inHead()
- inRow()
- inSelect()
- inTable()
- inTableBody()
- initPhase()
- insertComment()
- insertElement()
- insertText()
- mainPhase()
- reconstructActiveFormattingElements()
- resetInsertionMode()
- rootElementPhase()
- trailingEndPhase()