Class HTMLPurifier_AttrDef_CSS_Percentage

Description

Validates a Percentage as defined by the CSS spec.

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

HTMLPurifier_AttrDef
   |
   --HTMLPurifier_AttrDef_CSS_Percentage
Variable Summary
mixed $number_def
Method Summary
HTMLPurifier_AttrDef_CSS_Percentage __construct ([Bool $non_negative = false])
void validate ( $string,  $config,  $context)
Variables
mixed $number_def (line 9141)

Instance of HTMLPurifier_AttrDef_CSS_Number to defer number validation

  • access: protected

Inherited Variables

Inherited from HTMLPurifier_AttrDef

HTMLPurifier_AttrDef::$minimized
HTMLPurifier_AttrDef::$required
Methods
Constructor __construct (line 9146)
  • access: public
HTMLPurifier_AttrDef_CSS_Percentage __construct ([Bool $non_negative = false])
  • Bool $non_negative: indicating whether to forbid negative values
validate (line 9150)
  • 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