XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
HTMLPurifier_AttrDef_CSS Class Reference
Inheritance diagram for HTMLPurifier_AttrDef_CSS:
Inheritance graph

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

Validates the HTML attribute style, otherwise known as CSS.

Note
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.

Definition at line 14 of file CSS.php.

Member Function Documentation

HTMLPurifier_AttrDef_CSS::validate (   $css,
  $config,
  $context 
)

Name of the current CSS property being validated.

Definition at line 17 of file CSS.php.

References $config, $result, and HTMLPurifier_AttrDef\parseCDATA().

Here is the call graph for this function:


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