Class HTMLPurifier_ChildDef_Chameleon
Definition that uses different definitions depending on context.
The del and ins tags are notable because they allow different types of elements depending on whether or not they're in a block or inline context. Chameleon allows this behavior to happen by using two different definitions depending on context. While this somewhat generalized, it is specifically intended for those two tags.
- HTMLPurifier_ChildDef
- HTMLPurifier_ChildDef_Chameleon
public
|
|
public
boolean
|
#
validateChildren( $tokens_of_children $tokens_of_children, $config $config, $context $context )
Validates nodes according to definition and returns modification. |
getAllowedElements()
|
public
|
$inline |
|
#
Instance of the definition object to use when inline. Usually stricter. |
public
|
$block |
|
#
Instance of the definition object to use when block. |
public
string
|
$type | 'chameleon' |
#
Type of child definition, usually right-most part of class name lowercase. Used occasionally in terms of context. |
$allow_empty,
$elements
|