HTMLPurifier 4.4.0
HTML5TreeConstructer Class Reference

List of all members.

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

Detailed Description

Definition at line 1178 of file PH5P.php.


Constructor & Destructor Documentation

HTML5TreeConstructer::__construct ( )

Definition at line 1230 of file PH5P.php.

References BEFOR_HEAD, and INIT_PHASE.


Member Function Documentation

HTML5TreeConstructer::afterBody ( token) [private]

Definition at line 3359 of file PH5P.php.

References HTML5::CHARACTR, HTML5::COMMENT, END_PHASE, HTML5::ENDTAG, IN_BODY, and inBody().

Referenced by inBody(), and mainPhase().

HTML5TreeConstructer::afterFrameset ( token) [private]
HTML5TreeConstructer::afterHead ( token) [private]
HTML5TreeConstructer::appendToRealParent ( node) [private]

Definition at line 3572 of file PH5P.php.

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

HTML5TreeConstructer::beforeHead ( token) [private]
HTML5TreeConstructer::clearStackToTableContext ( elements) [private]

Definition at line 3770 of file PH5P.php.

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

HTML5TreeConstructer::clearTheActiveFormattingElementsUpToTheLastMarker ( ) [private]

Definition at line 3720 of file PH5P.php.

Referenced by inCaption(), and inCell().

HTML5TreeConstructer::closeCell ( ) [private]

Definition at line 3885 of file PH5P.php.

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

Referenced by inCell().

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().

HTML5TreeConstructer::emitToken ( token)

Definition at line 1242 of file PH5P.php.

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

Referenced by inBody().

HTML5TreeConstructer::generateImpliedEndTags ( exclude = array()) [private]

Definition at line 3741 of file PH5P.php.

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

HTML5TreeConstructer::getElementCategory ( node) [private]

Definition at line 3755 of file PH5P.php.

References FORMATTING, PHRASING, SCOPING, and SPECIAL.

Referenced by inBody().

HTML5TreeConstructer::inCaption ( token) [private]
HTML5TreeConstructer::inCell ( token) [private]
HTML5TreeConstructer::inColumnGroup ( token) [private]

Definition at line 2875 of file PH5P.php.

References HTML5::CHARACTR, HTML5::COMMENT, HTML5::ENDTAG, IN_TABLE, insertElement(), inTable(), and HTML5::STARTTAG.

Referenced by inTable(), and mainPhase().

HTML5TreeConstructer::inFrameset ( token) [private]
HTML5TreeConstructer::inHead ( token) [private]
HTML5TreeConstructer::initPhase ( token) [private]
HTML5TreeConstructer::inRow ( token) [private]
HTML5TreeConstructer::inSelect ( token) [private]
HTML5TreeConstructer::insertComment ( data) [private]

Definition at line 3567 of file PH5P.php.

References $data, and appendToRealParent().

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

HTML5TreeConstructer::insertElement ( token,
append = true,
check = false 
) [private]
HTML5TreeConstructer::insertText ( data) [private]

Definition at line 3562 of file PH5P.php.

References $data, and appendToRealParent().

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

HTML5TreeConstructer::inTableBody ( token) [private]
HTML5TreeConstructer::reconstructActiveFormattingElements ( ) [private]

Definition at line 3649 of file PH5P.php.

Referenced by inBody().

HTML5TreeConstructer::resetInsertionMode ( ) [private]

Definition at line 3787 of file PH5P.php.

References IN_BODY, IN_CAPTION, IN_CELL, IN_CGROUP, IN_FRAME, IN_ROW, IN_SELECT, IN_TABLE, and IN_TBODY.

Referenced by inSelect(), and inTable().

HTML5TreeConstructer::rootElementPhase ( token) [private]
HTML5TreeConstructer::save ( )

Definition at line 3900 of file PH5P.php.

HTML5TreeConstructer::trailingEndPhase ( token) [private]

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.

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.

Definition at line 1218 of file PH5P.php.

Referenced by inBody().

Definition at line 1209 of file PH5P.php.

Referenced by inHead().

Definition at line 1220 of file PH5P.php.

Referenced by inFrameset().

Definition at line 1207 of file PH5P.php.

Referenced by __construct().

Definition at line 1204 of file PH5P.php.

Referenced by afterBody(), and afterFrameset().

Definition at line 1225 of file PH5P.php.

Referenced by getElementCategory().

Definition at line 1210 of file PH5P.php.

Referenced by afterBody(), afterHead(), and resetInsertionMode().

Definition at line 1212 of file PH5P.php.

Referenced by inTable(), and resetInsertionMode().

Definition at line 1216 of file PH5P.php.

Referenced by inRow(), and resetInsertionMode().

Definition at line 1213 of file PH5P.php.

Referenced by inTable(), and resetInsertionMode().

Definition at line 1219 of file PH5P.php.

Referenced by afterHead(), and resetInsertionMode().

Definition at line 1208 of file PH5P.php.

Referenced by afterHead(), and beforeHead().

Definition at line 1215 of file PH5P.php.

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

Definition at line 1217 of file PH5P.php.

Referenced by inBody(), and resetInsertionMode().

Definition at line 1214 of file PH5P.php.

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

Definition at line 1201 of file PH5P.php.

Referenced by __construct().

Definition at line 1203 of file PH5P.php.

Referenced by rootElementPhase(), and trailingEndPhase().

Definition at line 1228 of file PH5P.php.

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

Definition at line 1226 of file PH5P.php.

Referenced by getElementCategory().

Definition at line 1202 of file PH5P.php.

Referenced by initPhase().

Definition at line 1224 of file PH5P.php.

Referenced by getElementCategory().

Definition at line 1223 of file PH5P.php.

Referenced by getElementCategory().


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