Class HTMLPurifier_AttrDef_CSS_DenyElementDecorator

InheritanceHTMLPurifier_AttrDef_CSS_DenyElementDecorator » HTMLPurifier_AttrDef

Decorator which enables CSS properties to be disabled for specific elements.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$def HTMLPurifier_AttrDef_CSS_DenyElementDecorator
$element HTMLPurifier_AttrDef_CSS_DenyElementDecorator
$minimized Tells us whether or not an HTML attribute is minimized. HTMLPurifier_AttrDef
$required Tells us whether or not an HTML attribute is required. HTMLPurifier_AttrDef

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() HTMLPurifier_AttrDef_CSS_DenyElementDecorator
make() Factory method for creating this class from a string. HTMLPurifier_AttrDef
parseCDATA() Convenience method that parses a string as if it were CDATA. HTMLPurifier_AttrDef
validate() Checks if CurrentToken is set and equal to $this->element HTMLPurifier_AttrDef_CSS_DenyElementDecorator

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
expandCSSEscape() Parses a possibly escaped CSS string and returns the "pure" version of it. HTMLPurifier_AttrDef
mungeRgb() Removes spaces from rgb(0, 0, 0) so that shorthand CSS properties work properly. THIS IS A HACK! HTMLPurifier_AttrDef

Property Details

$def public property
public $def null
$element public property
public $element null

Method Details

__construct() public method

public void __construct ( $def, $element )
$def HTMLPurifier_AttrDef

Definition to wrap

$element string

Element to deny

validate() public method

Checks if CurrentToken is set and equal to $this->element

public bool|string validate ( $string, $config, $context )
$string string
$config HTMLPurifier_Config
$context HTMLPurifier_Context