Merge commit 'catalyst/MOODLE_19_STABLE' into mdl19-linuxchix
[moodle-linuxchix.git] / lib / htmlpurifier / HTMLPurifier / HTMLModule / Object.php
blob33734772cca84d3a0692b153a7e178e9f7445386
1 <?php
3 require_once 'HTMLPurifier/HTMLModule.php';
5 /**
6 * XHTML 1.1 Object Module, defines elements for generic object inclusion
7 * @warning Users will commonly use <embed> to cater to legacy browsers: this
8 * module does not allow this sort of behavior
9 */
10 class HTMLPurifier_HTMLModule_Object extends HTMLPurifier_HTMLModule
13 var $name = 'Object';
15 function HTMLPurifier_HTMLModule_Object() {
17 $this->addElement('object', false, 'Inline', 'Optional: #PCDATA | Flow | param', 'Common',
18 array(
19 'archive' => 'URI',
20 'classid' => 'URI',
21 'codebase' => 'URI',
22 'codetype' => 'Text',
23 'data' => 'URI',
24 'declare' => 'Bool#declare',
25 'height' => 'Length',
26 'name' => 'CDATA',
27 'standby' => 'Text',
28 'tabindex' => 'Number',
29 'type' => 'ContentType',
30 'width' => 'Length'
34 $this->addElement('param', false, false, 'Empty', false,
35 array(
36 'id' => 'ID',
37 'name*' => 'Text',
38 'type' => 'Text',
39 'value' => 'Text',
40 'valuetype' => 'Enum#data,ref,object'