- \HTML5_TreeBuilder
class (none) \ HTML5_TreeBuilder
Method Summary
public function __construct()
public function adjustForeignAttributes($token)
public function adjustMathMLAttributes($token)
public function adjustSVGAttributes($token)
private function appendToRealParent($node)
private function clearStackToTableContext($elements)
private function clearTheActiveFormattingElementsUpToTheLastMarker()
private function closeCell()
public function currentTableIsTainted()
private function elementInScope($el, $scope)
- Defaults:
scope
= PhpParser\Node\Expr\ClassConstFetch
public function emitToken($token, $mode = null)
- Defaults:
mode
=null
public function fosterParent($node)
private function generateImpliedEndTags($exclude = array())
- Defaults:
exclude
= array()
private function getAttr($token, $key)
private function getCurrentTable()
private function getElementCategory($node)
private function getFosterParent()
private function insertCDATAElement($token)
private function insertComment($data)
private function insertElement($token, $append = true)
- Defaults:
append
=true
public function insertForeignElement($token, $namespaceURI)
private function insertRCDATAElement($token)
private function insertText($data)
private function printActiveFormattingElements()
For debugging, prints active formatting elements
private function printStack()
For debugging, prints the stack
private function processWithRulesFor($token, $mode)
private function reconstructActiveFormattingElements()
private function resetInsertionMode($context = null)
- Defaults:
context
=null
public function save()
public function setupContext($context = null)
Sets up the tree constructor for building a fragment.
- Defaults:
context
=null
private function strConst($number)
Converts a magic number to a readable name. Use for debugging.