\HTMLPurifier_AttrDef_CSS_Background
Validates shorthand CSS property background.
Synopsis
class HTMLPurifier_AttrDef_CSS_Background
extends HTMLPurifier_AttrDef
{
- // members
- protected $info;
- // Inherited members from HTMLPurifier_AttrDef
- public boolean $minimized;
- public boolean $required;
- // methods
- public void __construct()
- public void validate()
- // Inherited methods from HTMLPurifier_AttrDef
- public abstract void validate()
- public void parseCDATA()
- public Created make()
- protected void mungeRgb()
- protected void expandCSSEscape()
Hierarchy
Extends
Members
protected
-
$info
Local copy of component validators.
public
-
$minimized
Tells us whether or not an HTML attribute is minimized. Has no meaning in other contexts. -
$required
Tells us whether or not an HTML attribute is required. Has no meaning in other contexts
Methods
public
Inherited from HTMLPurifier_AttrDef
protected
- expandCSSEscape() — Parses a possibly escaped CSS string and returns the "pure" version of it.
- mungeRgb() — Removes spaces from rgb(0, 0, 0) so that shorthand CSS properties work properly. THIS IS A HACK!
public
- make() — Factory method for creating this class from a string.
- parseCDATA() — Convenience method that parses a string as if it were CDATA.
- validate() — Validates and cleans passed string according to a definition.