Proprietary.php 1018 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. class HTMLPurifier_HTMLModule_Tidy_Proprietary extends HTMLPurifier_HTMLModule_Tidy
  3. {
  4. /**
  5. * @type string
  6. */
  7. public $name = 'Tidy_Proprietary';
  8. /**
  9. * @type string
  10. */
  11. public $defaultLevel = 'light';
  12. /**
  13. * @return array
  14. */
  15. public function makeFixes()
  16. {
  17. $r = array();
  18. $r['table@background'] = new HTMLPurifier_AttrTransform_Background();
  19. $r['td@background'] = new HTMLPurifier_AttrTransform_Background();
  20. $r['th@background'] = new HTMLPurifier_AttrTransform_Background();
  21. $r['tr@background'] = new HTMLPurifier_AttrTransform_Background();
  22. $r['thead@background'] = new HTMLPurifier_AttrTransform_Background();
  23. $r['tfoot@background'] = new HTMLPurifier_AttrTransform_Background();
  24. $r['tbody@background'] = new HTMLPurifier_AttrTransform_Background();
  25. $r['table@height'] = new HTMLPurifier_AttrTransform_Length('height');
  26. return $r;
  27. }
  28. }
  29. // vim: et sw=4 sts=4