API - XOOPS 2.5.11 Beta 2
By monxoops.fr
HTMLPurifier_AttrDef_CSS Class Reference
Inheritance diagram for HTMLPurifier_AttrDef_CSS:
Collaboration diagram for HTMLPurifier_AttrDef_CSS:

Public Member Functions

 validate ($css, $config, $context)
- Public Member Functions inherited from HTMLPurifier_AttrDef
 validate ($string, $config, $context)
 parseCDATA ($string)
 make ($string)

Additional Inherited Members

- Data Fields inherited from HTMLPurifier_AttrDef
 $minimized = false
 $required = false
- Protected Member Functions inherited from HTMLPurifier_AttrDef
 mungeRgb ($string)
 expandCSSEscape ($string)

Detailed Description

Validates the HTML attribute style, otherwise known as CSS.

We don't implement the whole CSS specification, so it might be difficult to reuse this component in the context of validating actual stylesheet declarations.
If we were really serious about validating the CSS, we would tokenize the styles and then parse the tokens. Obviously, we are not doing that. Doing that could seriously harm performance, but would make these components a lot more viable for a CSS filtering solution.

Member Function Documentation

◆ validate()

validate (   $css,

Name of the current CSS property being validated.

Reimplemented from HTMLPurifier_AttrDef.

Here is the call graph for this function:

The documentation for this class was generated from the following file: