StyleAttribute.php 780 B

123456789101112131415161718192021222324252627282930313233
  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. /**
  9. * @type string
  10. */
  11. public $name = 'StyleAttribute';
  12. /**
  13. * @type array
  14. */
  15. public $attr_collections = array(
  16. // The inclusion routine differs from the Abstract Modules but
  17. // is in line with the DTD and XML Schemas.
  18. 'Style' => array('style' => false), // see constructor
  19. 'Core' => array(0 => array('Style'))
  20. );
  21. /**
  22. * @param HTMLPurifier_Config $config
  23. */
  24. public function setup($config)
  25. {
  26. $this->attr_collections['Style']['style'] = new HTMLPurifier_AttrDef_CSS();
  27. }
  28. }
  29. // vim: et sw=4 sts=4