\HTMLPurifier_AttrDef_HTML_Class
Implements special behavior for class attribute (normally NMTOKENS)
Synopsis
class HTMLPurifier_AttrDef_HTML_Class
extends HTMLPurifier_AttrDef_HTML_Nmtokens
{
- // Inherited members from HTMLPurifier_AttrDef
- public boolean $minimized;
- public boolean $required;
- // Inherited methods from HTMLPurifier_AttrDef_HTML_Nmtokens
- public void validate()
- protected void split()
- protected void filter()
- // Inherited methods from HTMLPurifier_AttrDef
- public abstract void validate()
- public void parseCDATA()
- public Created make()
- protected void mungeRgb()
- protected void expandCSSEscape()
Hierarchy
Members
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
protected
Inherited from HTMLPurifier_AttrDef_HTML_Nmtokens
protected
- filter() — Template method for removing certain tokens based on arbitrary criteria.
- split() — Splits a space separated list of tokens into its constituent parts.
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.