You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 line
995B

  1. <?php
  2. /**
  3. * Module defines proprietary tags and attributes in HTML.
  4. * @warning If this module is enabled, standards-compliance is off!
  5. */
  6. class HTMLPurifier_HTMLModule_Proprietary extends HTMLPurifier_HTMLModule
  7. {
  8. /**
  9. * @type string
  10. */
  11. public $name = 'Proprietary';
  12. /**
  13. * @param HTMLPurifier_Config $config
  14. */
  15. public function setup($config)
  16. {
  17. $this->addElement(
  18. 'marquee',
  19. 'Inline',
  20. 'Flow',
  21. 'Common',
  22. array(
  23. 'direction' => 'Enum#left,right,up,down',
  24. 'behavior' => 'Enum#alternate',
  25. 'width' => 'Length',
  26. 'height' => 'Length',
  27. 'scrolldelay' => 'Number',
  28. 'scrollamount' => 'Number',
  29. 'loop' => 'Number',
  30. 'bgcolor' => 'Color',
  31. 'hspace' => 'Pixels',
  32. 'vspace' => 'Pixels',
  33. )
  34. );
  35. }
  36. }
  37. // vim: et sw=4 sts=4