StyleAttribute.php 648 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * XHTML 1.1 Edit Module, defines editing-related elements. Text Extension
  4. * Module.
  5. */
  6. class HTMLPurifier_HTMLModule_StyleAttribute extends HTMLPurifier_HTMLModule
  7. {
  8. public $name = 'StyleAttribute';
  9. public $attr_collections = array(
  10. // The inclusion routine differs from the Abstract Modules but
  11. // is in line with the DTD and XML Schemas.
  12. 'Style' => array('style' => false), // see constructor
  13. 'Core' => array(0 => array('Style'))
  14. );
  15. public function setup($config) {
  16. $this->attr_collections['Style']['style'] = new HTMLPurifier_AttrDef_CSS();
  17. }
  18. }
  19. // vim: et sw=4 sts=4