File indexing completed on 2024-05-12 06:02:05

0001 <?php
0002 
0003 /**
0004  * XHTML 1.1 Object Module, defines elements for generic object inclusion
0005  * @warning Users will commonly use <embed> to cater to legacy browsers: this
0006  *      module does not allow this sort of behavior
0007  */
0008 class HTMLPurifier_HTMLModule_Object extends HTMLPurifier_HTMLModule
0009 {
0010     /**
0011      * @type string
0012      */
0013     public $name = 'Object';
0014 
0015     /**
0016      * @type bool
0017      */
0018     public $safe = false;
0019 
0020     /**
0021      * @param HTMLPurifier_Config $config
0022      */
0023     public function setup($config)
0024     {
0025         $this->addElement(
0026             'object',
0027             'Inline',
0028             'Optional: #PCDATA | Flow | param',
0029             'Common',
0030             array(
0031                 'archive' => 'URI',
0032                 'classid' => 'URI',
0033                 'codebase' => 'URI',
0034                 'codetype' => 'Text',
0035                 'data' => 'URI',
0036                 'declare' => 'Bool#declare',
0037                 'height' => 'Length',
0038                 'name' => 'CDATA',
0039                 'standby' => 'Text',
0040                 'tabindex' => 'Number',
0041                 'type' => 'ContentType',
0042                 'width' => 'Length'
0043             )
0044         );
0045 
0046         $this->addElement(
0047             'param',
0048             false,
0049             'Empty',
0050             null,
0051             array(
0052                 'id' => 'ID',
0053                 'name*' => 'Text',
0054                 'type' => 'Text',
0055                 'value' => 'Text',
0056                 'valuetype' => 'Enum#data,ref,object'
0057             )
0058         );
0059     }
0060 }
0061 
0062 // vim: et sw=4 sts=4