Public Member Functions | |
| __construct () | |
| emitToken ($token) | |
| save () | |
Public Attributes | |
| $stack = array() | |
| 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 |
Private Member Functions | |
| initPhase ($token) | |
| rootElementPhase ($token) | |
| mainPhase ($token) | |
| beforeHead ($token) | |
| inHead ($token) | |
| afterHead ($token) | |
| inBody ($token) | |
| inTable ($token) | |
| inCaption ($token) | |
| inColumnGroup ($token) | |
| inTableBody ($token) | |
| inRow ($token) | |
| inCell ($token) | |
| inSelect ($token) | |
| afterBody ($token) | |
| inFrameset ($token) | |
| afterFrameset ($token) | |
| trailingEndPhase ($token) | |
| insertElement ($token, $append=true, $check=false) | |
| insertText ($data) | |
| insertComment ($data) | |
| appendToRealParent ($node) | |
| elementInScope ($el, $table=false) | |
| reconstructActiveFormattingElements () | |
| clearTheActiveFormattingElementsUpToTheLastMarker () | |
| generateImpliedEndTags ($exclude=array()) | |
| getElementCategory ($node) | |
| clearStackToTableContext ($elements) | |
| resetInsertionMode () | |
| closeCell () | |
Private Attributes | |
| $phase | |
| $mode | |
| $dom | |
| $foster_parent = null | |
| $a_formatting = array() | |
| $head_pointer = null | |
| $form_pointer = null | |
| $scoping = array('button','caption','html','marquee','object','table','td','th') | |
| $formatting = array('a','b','big','em','font','i','nobr','s','small','strike','strong','tt','u') | |
| $special | |
Definition at line 1180 of file PH5P.php.
| HTML5TreeConstructer::emitToken | ( | $ | token | ) |
Definition at line 1244 of file PH5P.php.
References initPhase(), mainPhase(), rootElementPhase(), and trailingEndPhase().
Referenced by inBody().
| HTML5TreeConstructer::initPhase | ( | $ | token | ) | [private] |
Definition at line 1253 of file PH5P.php.
References HTML5::CHARACTR, HTML5::COMMENT, HTML5::ENDTAG, HTML5::EOF(), n, rootElementPhase(), and HTML5::STARTTAG.
Referenced by emitToken().
| HTML5TreeConstructer::rootElementPhase | ( | $ | token | ) | [private] |
Definition at line 1303 of file PH5P.php.
References HTML5::CHARACTR, HTML5::COMMENT, HTML5::DOCTYPE, HTML5::ENDTAG, HTML5::EOF(), mainPhase(), n, and HTML5::STARTTAG.
Referenced by emitToken(), and initPhase().
| HTML5TreeConstructer::mainPhase | ( | $ | token | ) | [private] |
Definition at line 1350 of file PH5P.php.
References afterBody(), afterFrameset(), afterHead(), beforeHead(), HTML5::DOCTYPE, HTML5::EOF(), generateImpliedEndTags(), inBody(), inCaption(), inCell(), inColumnGroup(), inFrameset(), inHead(), inRow(), inSelect(), inTable(), inTableBody(), HTML5::STARTTAG, and trailingEndPhase().
Referenced by emitToken(), inSelect(), inTable(), inTableBody(), rootElementPhase(), and trailingEndPhase().
| HTML5TreeConstructer::beforeHead | ( | $ | token | ) | [private] |
Definition at line 1400 of file PH5P.php.
References HTML5::CHARACTR, HTML5::COMMENT, HTML5::ENDTAG, inHead(), insertComment(), insertElement(), insertText(), n, and HTML5::STARTTAG.
Referenced by mainPhase().
| HTML5TreeConstructer::inHead | ( | $ | token | ) | [private] |
Definition at line 1454 of file PH5P.php.
References afterHead(), HTML5::CDATA, HTML5::CHARACTR, HTML5::COMMENT, HTML5::ENDTAG, insertComment(), insertElement(), insertText(), n, HTML5::PCDATA, HTML5::RCDATA, and HTML5::STARTTAG.
Referenced by afterHead(), beforeHead(), inBody(), and mainPhase().
| HTML5TreeConstructer::afterHead | ( | $ | token | ) | [private] |
Definition at line 1578 of file PH5P.php.
References HTML5::CHARACTR, HTML5::COMMENT, inBody(), inHead(), insertComment(), insertElement(), insertText(), n, and HTML5::STARTTAG.
Referenced by inHead(), and mainPhase().
| HTML5TreeConstructer::inBody | ( | $ | token | ) | [private] |
Definition at line 1634 of file PH5P.php.
References afterBody(), HTML5::CDATA, HTML5::CHARACTR, HTML5::COMMENT, elementInScope(), emitToken(), HTML5::ENDTAG, generateImpliedEndTags(), getElementCategory(), inHead(), insertComment(), insertElement(), insertText(), HTML5::PLAINTEXT, HTML5::RCDATA, reconstructActiveFormattingElements(), and HTML5::STARTTAG.
Referenced by afterBody(), afterFrameset(), afterHead(), inCaption(), inCell(), inFrameset(), inTable(), and mainPhase().
| HTML5TreeConstructer::inTable | ( | $ | token | ) | [private] |
Definition at line 2632 of file PH5P.php.
References HTML5::CHARACTR, clearStackToTableContext(), HTML5::COMMENT, elementInScope(), HTML5::ENDTAG, generateImpliedEndTags(), inBody(), inColumnGroup(), insertElement(), inTableBody(), mainPhase(), n, resetInsertionMode(), and HTML5::STARTTAG.
Referenced by inCaption(), inColumnGroup(), inRow(), inTableBody(), and mainPhase().
| HTML5TreeConstructer::inCaption | ( | $ | token | ) | [private] |
Definition at line 2809 of file PH5P.php.
References clearTheActiveFormattingElementsUpToTheLastMarker(), elementInScope(), HTML5::ENDTAG, generateImpliedEndTags(), inBody(), inTable(), and HTML5::STARTTAG.
Referenced by mainPhase().
| HTML5TreeConstructer::inColumnGroup | ( | $ | token | ) | [private] |
Definition at line 2877 of file PH5P.php.
References HTML5::CHARACTR, HTML5::COMMENT, HTML5::ENDTAG, insertElement(), inTable(), n, and HTML5::STARTTAG.
Referenced by inTable(), and mainPhase().
| HTML5TreeConstructer::inTableBody | ( | $ | token | ) | [private] |
Definition at line 2934 of file PH5P.php.
References clearStackToTableContext(), elementInScope(), HTML5::ENDTAG, inRow(), insertElement(), inTable(), mainPhase(), and HTML5::STARTTAG.
Referenced by inTable(), and mainPhase().
| HTML5TreeConstructer::inRow | ( | $ | token | ) | [private] |
Definition at line 3020 of file PH5P.php.
References clearStackToTableContext(), elementInScope(), HTML5::ENDTAG, inCell(), insertElement(), inTable(), and HTML5::STARTTAG.
Referenced by inCell(), inTableBody(), and mainPhase().
| HTML5TreeConstructer::inCell | ( | $ | token | ) | [private] |
Definition at line 3105 of file PH5P.php.
References clearTheActiveFormattingElementsUpToTheLastMarker(), closeCell(), elementInScope(), HTML5::ENDTAG, generateImpliedEndTags(), inBody(), inRow(), and HTML5::STARTTAG.
Referenced by closeCell(), inRow(), and mainPhase().
| HTML5TreeConstructer::inSelect | ( | $ | token | ) | [private] |
Definition at line 3212 of file PH5P.php.
References HTML5::CHARACTR, HTML5::COMMENT, elementInScope(), HTML5::ENDTAG, insertComment(), insertElement(), insertText(), mainPhase(), resetInsertionMode(), and HTML5::STARTTAG.
Referenced by mainPhase().
| HTML5TreeConstructer::afterBody | ( | $ | token | ) | [private] |
Definition at line 3361 of file PH5P.php.
References HTML5::CHARACTR, HTML5::COMMENT, HTML5::ENDTAG, inBody(), and n.
Referenced by inBody(), and mainPhase().
| HTML5TreeConstructer::inFrameset | ( | $ | token | ) | [private] |
Definition at line 3400 of file PH5P.php.
References HTML5::CHARACTR, HTML5::COMMENT, HTML5::ENDTAG, inBody(), insertComment(), insertElement(), insertText(), n, and HTML5::STARTTAG.
Referenced by mainPhase().
| HTML5TreeConstructer::afterFrameset | ( | $ | token | ) | [private] |
Definition at line 3463 of file PH5P.php.
References HTML5::CHARACTR, HTML5::COMMENT, HTML5::ENDTAG, inBody(), insertComment(), insertText(), n, and HTML5::STARTTAG.
Referenced by mainPhase().
| HTML5TreeConstructer::trailingEndPhase | ( | $ | token | ) | [private] |
Definition at line 3498 of file PH5P.php.
References HTML5::CHARACTR, HTML5::COMMENT, HTML5::DOCTYPE, HTML5::ENDTAG, HTML5::EOF(), mainPhase(), n, and HTML5::STARTTAG.
Referenced by emitToken(), and mainPhase().
| HTML5TreeConstructer::insertElement | ( | $ | token, | |
| $ | append = true, |
|||
| $ | check = false | |||
| ) | [private] |
Definition at line 3538 of file PH5P.php.
References appendToRealParent().
Referenced by afterHead(), beforeHead(), inBody(), inColumnGroup(), inFrameset(), inHead(), inRow(), inSelect(), inTable(), and inTableBody().
| HTML5TreeConstructer::insertText | ( | $ | data | ) | [private] |
Definition at line 3564 of file PH5P.php.
References $data, and appendToRealParent().
Referenced by afterFrameset(), afterHead(), beforeHead(), inBody(), inFrameset(), inHead(), and inSelect().
| HTML5TreeConstructer::insertComment | ( | $ | data | ) | [private] |
Definition at line 3569 of file PH5P.php.
References $data, and appendToRealParent().
Referenced by afterFrameset(), afterHead(), beforeHead(), inBody(), inFrameset(), inHead(), and inSelect().
| HTML5TreeConstructer::appendToRealParent | ( | $ | node | ) | [private] |
Definition at line 3574 of file PH5P.php.
Referenced by insertComment(), insertElement(), and insertText().
| HTML5TreeConstructer::elementInScope | ( | $ | el, | |
| $ | table = false | |||
| ) | [private] |
Definition at line 3602 of file PH5P.php.
Referenced by closeCell(), inBody(), inCaption(), inCell(), inRow(), inSelect(), inTable(), and inTableBody().
| HTML5TreeConstructer::reconstructActiveFormattingElements | ( | ) | [private] |
| HTML5TreeConstructer::clearTheActiveFormattingElementsUpToTheLastMarker | ( | ) | [private] |
| HTML5TreeConstructer::generateImpliedEndTags | ( | $ | exclude = array() |
) | [private] |
Definition at line 3743 of file PH5P.php.
Referenced by inBody(), inCaption(), inCell(), inTable(), and mainPhase().
| HTML5TreeConstructer::getElementCategory | ( | $ | node | ) | [private] |
| HTML5TreeConstructer::clearStackToTableContext | ( | $ | elements | ) | [private] |
| HTML5TreeConstructer::resetInsertionMode | ( | ) | [private] |
| HTML5TreeConstructer::closeCell | ( | ) | [private] |
Definition at line 3887 of file PH5P.php.
References elementInScope(), HTML5::ENDTAG, and inCell().
Referenced by inCell().
HTML5TreeConstructer::$scoping = array('button','caption','html','marquee','object','table','td','th') [private] |
HTML5TreeConstructer::$formatting = array('a','b','big','em','font','i','nobr','s','small','strike','strong','tt','u') [private] |
HTML5TreeConstructer::$special [private] |
Initial value:
array('address','area','base','basefont','bgsound',
'blockquote','body','br','center','col','colgroup','dd','dir','div','dl',
'dt','embed','fieldset','form','frame','frameset','h1','h2','h3','h4','h5',
'h6','head','hr','iframe','image','img','input','isindex','li','link',
'listing','menu','meta','noembed','noframes','noscript','ol','optgroup',
'option','p','param','plaintext','pre','script','select','spacer','style',
'tbody','textarea','tfoot','thead','title','tr','ul','wbr')
| const HTML5TreeConstructer::INIT_PHASE = 0 |
| const HTML5TreeConstructer::ROOT_PHASE = 1 |
| const HTML5TreeConstructer::MAIN_PHASE = 2 |
| const HTML5TreeConstructer::END_PHASE = 3 |
| const HTML5TreeConstructer::BEFOR_HEAD = 0 |
| const HTML5TreeConstructer::IN_HEAD = 1 |
| const HTML5TreeConstructer::AFTER_HEAD = 2 |
| const HTML5TreeConstructer::IN_BODY = 3 |
| const HTML5TreeConstructer::IN_TABLE = 4 |
| const HTML5TreeConstructer::IN_CAPTION = 5 |
| const HTML5TreeConstructer::IN_CGROUP = 6 |
| const HTML5TreeConstructer::IN_TBODY = 7 |
| const HTML5TreeConstructer::IN_ROW = 8 |
| const HTML5TreeConstructer::IN_CELL = 9 |
| const HTML5TreeConstructer::IN_SELECT = 10 |
| const HTML5TreeConstructer::AFTER_BODY = 11 |
| const HTML5TreeConstructer::IN_FRAME = 12 |
| const HTML5TreeConstructer::AFTR_FRAME = 13 |
| const HTML5TreeConstructer::SPECIAL = 0 |
| const HTML5TreeConstructer::SCOPING = 1 |
| const HTML5TreeConstructer::FORMATTING = 2 |
| const HTML5TreeConstructer::PHRASING = 3 |
| const HTML5TreeConstructer::MARKER = 0 |
1.5.3