Object.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * XHTML 1.1 Object Module, defines elements for generic object inclusion
  4. * @warning Users will commonly use <embed> to cater to legacy browsers: this
  5. * module does not allow this sort of behavior
  6. */
  7. class HTMLPurifier_HTMLModule_Object extends HTMLPurifier_HTMLModule
  8. {
  9. public $name = 'Object';
  10. public $safe = false;
  11. public function setup($config) {
  12. $this->addElement('object', 'Inline', 'Optional: #PCDATA | Flow | param', 'Common',
  13. array(
  14. 'archive' => 'URI',
  15. 'classid' => 'URI',
  16. 'codebase' => 'URI',
  17. 'codetype' => 'Text',
  18. 'data' => 'URI',
  19. 'declare' => 'Bool#declare',
  20. 'height' => 'Length',
  21. 'name' => 'CDATA',
  22. 'standby' => 'Text',
  23. 'tabindex' => 'Number',
  24. 'type' => 'ContentType',
  25. 'width' => 'Length'
  26. )
  27. );
  28. $this->addElement('param', false, 'Empty', false,
  29. array(
  30. 'id' => 'ID',
  31. 'name*' => 'Text',
  32. 'type' => 'Text',
  33. 'value' => 'Text',
  34. 'valuetype' => 'Enum#data,ref,object'
  35. )
  36. );
  37. }
  38. }
  39. // vim: et sw=4 sts=4