PageRenderTime 37ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/plugins/vjCommentPlugin/lib/tools/htmlpurifier/library/HTMLPurifier/HTMLModule/Object.php

https://bitbucket.org/Kudlaty/360kdw
PHP | 47 lines | 33 code | 8 blank | 6 comment | 0 complexity | a7cca883348645c6a77ec7db0932a610 MD5 | raw file
Possible License(s): LGPL-2.1
  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