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(
|
getAllowedElements()
|
public
mixed
|
$inline |
|
#
Instance of the definition object to use when inline. Usually stricter. |
public
mixed
|
$block |
|
#
Instance of the definition object to use when block. |
public
string
|
$type | 'chameleon' |
$allow_empty,
$elements
|