Class HTMLPurifier_AttrDef_CSS_ImportantDecorator

Description

Decorator which enables !important to be used in CSS values.

Located in /lib/core/Parsers/htmlpurifier/HTMLPurifier.standalone.php (line 8908)

HTMLPurifier_AttrDef
   |
   --HTMLPurifier_AttrDef_CSS_ImportantDecorator
Variable Summary
mixed $allow
mixed $def
Method Summary
HTMLPurifier_AttrDef_CSS_ImportantDecorator __construct ($def $def, [$allow $allow = false])
void validate ( $string,  $config,  $context)
Variables
mixed $allow (line 8910)
  • access: public
mixed $def (line 8910)
  • access: public

Inherited Variables

Inherited from HTMLPurifier_AttrDef

HTMLPurifier_AttrDef::$minimized
HTMLPurifier_AttrDef::$required
Methods
Constructor __construct (line 8916)
  • access: public
HTMLPurifier_AttrDef_CSS_ImportantDecorator __construct ($def $def, [$allow $allow = false])
  • $def $def: Definition to wrap
  • $allow $allow: Whether or not to allow !important
validate (line 8923)

Intercepts and removes !important if necessary

  • access: public
void validate ( $string,  $config,  $context)
  • $string
  • $config
  • $context

Redefinition of:
HTMLPurifier_AttrDef::validate()
Validates and cleans passed string according to a definition.

Inherited Methods

Inherited From HTMLPurifier_AttrDef

HTMLPurifier_AttrDef::expandCSSEscape()
HTMLPurifier_AttrDef::make()
HTMLPurifier_AttrDef::mungeRgb()
HTMLPurifier_AttrDef::parseCDATA()
HTMLPurifier_AttrDef::validate()

Documentation generated on Sun, 06 Mar 2011 00:23:59 -0500 by phpDocumentor 1.4.3