36        $token = $context->get(
'CurrentToken', 
true);
 
   37        if ($token && $token->name == $this->element) {
 
   40        return $this->def->validate($string, 
$config, $context);
 
An exception for terminatinating execution or to throw for unit testing.
Decorator which enables CSS properties to be disabled for specific elements.
__construct($def, $element)
validate($string, $config, $context)
Checks if CurrentToken is set and equal to $this->element.
$def
@type HTMLPurifier_AttrDef
Base class for all validating attribute definitions.