Class HTMLPurifier_ChildDef
Defines allowed child nodes and validates tokens against it.
Direct known subclasses
HTMLPurifier_ChildDef_Chameleon, HTMLPurifier_ChildDef_Custom, HTMLPurifier_ChildDef_Empty, HTMLPurifier_ChildDef_Required, HTMLPurifier_ChildDef_Table
public
|
#
getAllowedElements( $config )
Get lookup of tag names that should not close this element automatically. All other elements will do so. |
abstract public
boolean
|
#
validateChildren( $tokens_of_children $tokens_of_children, $config $config, $context $context )
Validates nodes according to definition and returns modification. |
public
|
$type |
|
#
Type of child definition, usually right-most part of class name lowercase. Used occasionally in terms of context. |
public
|
$allow_empty |
|
#
Bool that indicates whether or not an empty array of children is okay |
public
array
|
$elements | array() |
#
Lookup array of all elements that this definition could possibly allow |