XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
HTML5TreeConstructer Class Reference

Public Member Functions

 __construct ()
 
 emitToken ($token)
 
 save ()
 

Public Attributes

 $stack = array()
 
const AFTER_BODY = 11
 
const AFTER_HEAD = 2
 
const AFTR_FRAME = 13
 
const BEFOR_HEAD = 0
 
const END_PHASE = 3
 
const FORMATTING = 2
 
const IN_BODY = 3
 
const IN_CAPTION = 5
 
const IN_CELL = 9
 
const IN_CGROUP = 6
 
const IN_FRAME = 12
 
const IN_HEAD = 1
 
const IN_ROW = 8
 
const IN_SELECT = 10
 
const IN_TABLE = 4
 
const IN_TBODY = 7
 
const INIT_PHASE = 0
 
const MAIN_PHASE = 2
 
const MARKER = 0
 
const PHRASING = 3
 
const ROOT_PHASE = 1
 
const SCOPING = 1
 
const SPECIAL = 0
 

Private Member Functions

 afterBody ($token)
 
 afterFrameset ($token)
 
 afterHead ($token)
 
 appendToRealParent ($node)
 
 beforeHead ($token)
 
 clearStackToTableContext ($elements)
 
 clearTheActiveFormattingElementsUpToTheLastMarker ()
 
 closeCell ()
 
 elementInScope ($el, $table=false)
 
 generateImpliedEndTags ($exclude=array())
 
 getElementCategory ($node)
 
 inBody ($token)
 
 inCaption ($token)
 
 inCell ($token)
 
 inColumnGroup ($token)
 
 inFrameset ($token)
 
 inHead ($token)
 
 initPhase ($token)
 
 inRow ($token)
 
 inSelect ($token)
 
 insertComment ($data)
 
 insertElement ($token, $append=true, $check=false)
 
 insertText ($data)
 
 inTable ($token)
 
 inTableBody ($token)
 
 mainPhase ($token)
 
 reconstructActiveFormattingElements ()
 
 resetInsertionMode ()
 
 rootElementPhase ($token)
 
 trailingEndPhase ($token)
 

Private Attributes

 $a_formatting = array()
 
 $dom
 
 $form_pointer = null
 
 $formatting = array('a','b','big','em','font','i','nobr','s','small','strike','strong','tt','u')
 
 $foster_parent = null
 
 $head_pointer = null
 
 $mode
 
 $phase
 
 $scoping = array('button','caption','html','marquee','object','table','td','th')
 
 $special
 

Detailed Description

Definition at line 1178 of file PH5P.php.

Constructor & Destructor Documentation

HTML5TreeConstructer::__construct ( )

Definition at line 1230 of file PH5P.php.

Member Function Documentation

HTML5TreeConstructer::afterBody (   $token)
private

Definition at line 3359 of file PH5P.php.

References $comment, $token, HTML5\CHARACTR, HTML5\COMMENT, HTML5\ENDTAG, and inBody().

Referenced by inBody(), and mainPhase().

Here is the call graph for this function:

Here is the caller graph for this function:

HTML5TreeConstructer::afterFrameset (   $token)
private

Definition at line 3461 of file PH5P.php.

References $token, HTML5\CHARACTR, HTML5\COMMENT, HTML5\ENDTAG, inBody(), insertComment(), insertText(), and HTML5\STARTTAG.

Referenced by mainPhase().

Here is the call graph for this function:

Here is the caller graph for this function:

HTML5TreeConstructer::afterHead (   $token)
private

Definition at line 1576 of file PH5P.php.

References $token, HTML5\CHARACTR, HTML5\COMMENT, inBody(), inHead(), insertComment(), insertElement(), insertText(), and HTML5\STARTTAG.

Referenced by inHead(), and mainPhase().

Here is the call graph for this function:

Here is the caller graph for this function:

HTML5TreeConstructer::appendToRealParent (   $node)
private

Definition at line 3572 of file PH5P.php.

Referenced by insertComment(), insertElement(), and insertText().

Here is the caller graph for this function:

HTML5TreeConstructer::beforeHead (   $token)
private

Definition at line 1398 of file PH5P.php.

References $token, HTML5\CHARACTR, HTML5\COMMENT, HTML5\ENDTAG, inHead(), insertComment(), insertElement(), insertText(), and HTML5\STARTTAG.

Referenced by mainPhase().

Here is the call graph for this function:

Here is the caller graph for this function:

HTML5TreeConstructer::clearStackToTableContext (   $elements)
private

Definition at line 3770 of file PH5P.php.

Referenced by inRow(), inTable(), and inTableBody().

Here is the caller graph for this function:

HTML5TreeConstructer::clearTheActiveFormattingElementsUpToTheLastMarker ( )
private

Definition at line 3720 of file PH5P.php.

Referenced by inCaption(), and inCell().

Here is the caller graph for this function:

HTML5TreeConstructer::closeCell ( )
private

Definition at line 3885 of file PH5P.php.

References elementInScope(), HTML5\ENDTAG, and inCell().

Referenced by inCell().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 3600 of file PH5P.php.

Referenced by closeCell(), inBody(), inCaption(), inCell(), inRow(), inSelect(), inTable(), and inTableBody().

Here is the caller graph for this function:

HTML5TreeConstructer::emitToken (   $token)

Definition at line 1242 of file PH5P.php.

References $token, initPhase(), mainPhase(), rootElementPhase(), and trailingEndPhase().

Referenced by inBody().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 3741 of file PH5P.php.

Referenced by inBody(), inCaption(), inCell(), inTable(), and mainPhase().

Here is the caller graph for this function:

HTML5TreeConstructer::getElementCategory (   $node)
private

Definition at line 3755 of file PH5P.php.

Referenced by inBody().

Here is the caller graph for this function:

HTML5TreeConstructer::inBody (   $token)
private
HTML5TreeConstructer::inCaption (   $token)
private

Definition at line 2807 of file PH5P.php.

References $token, clearTheActiveFormattingElementsUpToTheLastMarker(), elementInScope(), HTML5\ENDTAG, generateImpliedEndTags(), inBody(), inTable(), and HTML5\STARTTAG.

Referenced by mainPhase().

Here is the call graph for this function:

Here is the caller graph for this function:

HTML5TreeConstructer::inCell (   $token)
private

Definition at line 3103 of file PH5P.php.

References $token, clearTheActiveFormattingElementsUpToTheLastMarker(), closeCell(), elementInScope(), HTML5\ENDTAG, generateImpliedEndTags(), inBody(), inRow(), and HTML5\STARTTAG.

Referenced by closeCell(), inRow(), and mainPhase().

Here is the call graph for this function:

Here is the caller graph for this function:

HTML5TreeConstructer::inColumnGroup (   $token)
private

Definition at line 2875 of file PH5P.php.

References $comment, $token, HTML5\CHARACTR, HTML5\COMMENT, HTML5\ENDTAG, insertElement(), inTable(), and HTML5\STARTTAG.

Referenced by inTable(), and mainPhase().

Here is the call graph for this function:

Here is the caller graph for this function:

HTML5TreeConstructer::inFrameset (   $token)
private

Definition at line 3398 of file PH5P.php.

References $token, HTML5\CHARACTR, HTML5\COMMENT, HTML5\ENDTAG, inBody(), insertComment(), insertElement(), insertText(), and HTML5\STARTTAG.

Referenced by mainPhase().

Here is the call graph for this function:

Here is the caller graph for this function:

HTML5TreeConstructer::inHead (   $token)
private

Definition at line 1452 of file PH5P.php.

References $token, afterHead(), HTML5\CDATA, HTML5\CHARACTR, HTML5\COMMENT, HTML5\ENDTAG, insertComment(), insertElement(), insertText(), HTML5\PCDATA, HTML5\RCDATA, and HTML5\STARTTAG.

Referenced by afterHead(), beforeHead(), inBody(), and mainPhase().

Here is the call graph for this function:

Here is the caller graph for this function:

HTML5TreeConstructer::initPhase (   $token)
private

Definition at line 1251 of file PH5P.php.

References $token, HTML5\CHARACTR, HTML5\COMMENT, HTML5\ENDTAG, HTML5\EOF(), rootElementPhase(), and HTML5\STARTTAG.

Referenced by emitToken().

Here is the call graph for this function:

Here is the caller graph for this function:

HTML5TreeConstructer::inRow (   $token)
private

Definition at line 3018 of file PH5P.php.

References $token, clearStackToTableContext(), elementInScope(), HTML5\ENDTAG, inCell(), insertElement(), inTable(), and HTML5\STARTTAG.

Referenced by inCell(), inTableBody(), and mainPhase().

Here is the call graph for this function:

Here is the caller graph for this function:

HTML5TreeConstructer::inSelect (   $token)
private

Definition at line 3210 of file PH5P.php.

References $token, HTML5\CHARACTR, HTML5\COMMENT, elementInScope(), HTML5\ENDTAG, insertComment(), insertElement(), insertText(), mainPhase(), resetInsertionMode(), and HTML5\STARTTAG.

Referenced by mainPhase().

Here is the call graph for this function:

Here is the caller graph for this function:

HTML5TreeConstructer::insertComment (   $data)
private

Definition at line 3567 of file PH5P.php.

References $comment, and appendToRealParent().

Referenced by afterFrameset(), afterHead(), beforeHead(), inBody(), inFrameset(), inHead(), and inSelect().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 3536 of file PH5P.php.

References $token, and appendToRealParent().

Referenced by afterHead(), beforeHead(), inBody(), inColumnGroup(), inFrameset(), inHead(), inRow(), inSelect(), inTable(), and inTableBody().

Here is the call graph for this function:

Here is the caller graph for this function:

HTML5TreeConstructer::insertText (   $data)
private

Definition at line 3562 of file PH5P.php.

References appendToRealParent().

Referenced by afterFrameset(), afterHead(), beforeHead(), inBody(), inFrameset(), inHead(), and inSelect().

Here is the call graph for this function:

Here is the caller graph for this function:

HTML5TreeConstructer::inTable (   $token)
private

Definition at line 2630 of file PH5P.php.

References $comment, $token, HTML5\CHARACTR, clearStackToTableContext(), HTML5\COMMENT, elementInScope(), HTML5\ENDTAG, generateImpliedEndTags(), inBody(), inColumnGroup(), insertElement(), inTableBody(), mainPhase(), resetInsertionMode(), and HTML5\STARTTAG.

Referenced by inCaption(), inColumnGroup(), inRow(), inTableBody(), and mainPhase().

Here is the call graph for this function:

Here is the caller graph for this function:

HTML5TreeConstructer::inTableBody (   $token)
private

Definition at line 2932 of file PH5P.php.

References $token, clearStackToTableContext(), elementInScope(), HTML5\ENDTAG, inRow(), insertElement(), inTable(), mainPhase(), and HTML5\STARTTAG.

Referenced by inTable(), and mainPhase().

Here is the call graph for this function:

Here is the caller graph for this function:

HTML5TreeConstructer::mainPhase (   $token)
private
HTML5TreeConstructer::reconstructActiveFormattingElements ( )
private

Definition at line 3649 of file PH5P.php.

Referenced by inBody().

Here is the caller graph for this function:

HTML5TreeConstructer::resetInsertionMode ( )
private

Definition at line 3787 of file PH5P.php.

Referenced by inSelect(), and inTable().

Here is the caller graph for this function:

HTML5TreeConstructer::rootElementPhase (   $token)
private

Definition at line 1301 of file PH5P.php.

References $comment, $html, $token, HTML5\CHARACTR, HTML5\COMMENT, HTML5\DOCTYPE, HTML5\ENDTAG, HTML5\EOF(), mainPhase(), and HTML5\STARTTAG.

Referenced by emitToken(), and initPhase().

Here is the call graph for this function:

Here is the caller graph for this function:

HTML5TreeConstructer::save ( )

Definition at line 3900 of file PH5P.php.

References $dom.

HTML5TreeConstructer::trailingEndPhase (   $token)
private

Definition at line 3496 of file PH5P.php.

References $comment, $token, HTML5\CHARACTR, HTML5\COMMENT, HTML5\DOCTYPE, HTML5\ENDTAG, HTML5\EOF(), mainPhase(), and HTML5\STARTTAG.

Referenced by emitToken(), and mainPhase().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

HTML5TreeConstructer::$a_formatting = array()
private

Definition at line 1185 of file PH5P.php.

HTML5TreeConstructer::$dom
private

Definition at line 1183 of file PH5P.php.

Referenced by save().

HTML5TreeConstructer::$form_pointer = null
private

Definition at line 1188 of file PH5P.php.

HTML5TreeConstructer::$formatting = array('a','b','big','em','font','i','nobr','s','small','strike','strong','tt','u')
private

Definition at line 1191 of file PH5P.php.

HTML5TreeConstructer::$foster_parent = null
private

Definition at line 1184 of file PH5P.php.

HTML5TreeConstructer::$head_pointer = null
private

Definition at line 1187 of file PH5P.php.

HTML5TreeConstructer::$mode
private

Definition at line 1182 of file PH5P.php.

HTML5TreeConstructer::$phase
private

Definition at line 1181 of file PH5P.php.

HTML5TreeConstructer::$scoping = array('button','caption','html','marquee','object','table','td','th')
private

Definition at line 1190 of file PH5P.php.

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')

Definition at line 1192 of file PH5P.php.

HTML5TreeConstructer::$stack = array()

Definition at line 1179 of file PH5P.php.

const HTML5TreeConstructer::AFTER_BODY = 11

Definition at line 1218 of file PH5P.php.

const HTML5TreeConstructer::AFTER_HEAD = 2

Definition at line 1209 of file PH5P.php.

const HTML5TreeConstructer::AFTR_FRAME = 13

Definition at line 1220 of file PH5P.php.

const HTML5TreeConstructer::BEFOR_HEAD = 0

Definition at line 1207 of file PH5P.php.

const HTML5TreeConstructer::END_PHASE = 3

Definition at line 1204 of file PH5P.php.

const HTML5TreeConstructer::FORMATTING = 2

Definition at line 1225 of file PH5P.php.

const HTML5TreeConstructer::IN_BODY = 3

Definition at line 1210 of file PH5P.php.

const HTML5TreeConstructer::IN_CAPTION = 5

Definition at line 1212 of file PH5P.php.

const HTML5TreeConstructer::IN_CELL = 9

Definition at line 1216 of file PH5P.php.

const HTML5TreeConstructer::IN_CGROUP = 6

Definition at line 1213 of file PH5P.php.

const HTML5TreeConstructer::IN_FRAME = 12

Definition at line 1219 of file PH5P.php.

const HTML5TreeConstructer::IN_HEAD = 1

Definition at line 1208 of file PH5P.php.

const HTML5TreeConstructer::IN_ROW = 8

Definition at line 1215 of file PH5P.php.

const HTML5TreeConstructer::IN_SELECT = 10

Definition at line 1217 of file PH5P.php.

const HTML5TreeConstructer::IN_TABLE = 4

Definition at line 1211 of file PH5P.php.

const HTML5TreeConstructer::IN_TBODY = 7

Definition at line 1214 of file PH5P.php.

const HTML5TreeConstructer::INIT_PHASE = 0

Definition at line 1201 of file PH5P.php.

const HTML5TreeConstructer::MAIN_PHASE = 2

Definition at line 1203 of file PH5P.php.

const HTML5TreeConstructer::MARKER = 0

Definition at line 1228 of file PH5P.php.

const HTML5TreeConstructer::PHRASING = 3

Definition at line 1226 of file PH5P.php.

const HTML5TreeConstructer::ROOT_PHASE = 1

Definition at line 1202 of file PH5P.php.

const HTML5TreeConstructer::SCOPING = 1

Definition at line 1224 of file PH5P.php.

const HTML5TreeConstructer::SPECIAL = 0

Definition at line 1223 of file PH5P.php.


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