File indexing completed on 2025-02-02 05:48:39
0001 <?php 0002 0003 /** 0004 * XHTML 1.1 Edit Module, defines editing-related elements. Text Extension 0005 * Module. 0006 */ 0007 class HTMLPurifier_HTMLModule_StyleAttribute extends HTMLPurifier_HTMLModule 0008 { 0009 /** 0010 * @type string 0011 */ 0012 public $name = 'StyleAttribute'; 0013 0014 /** 0015 * @type array 0016 */ 0017 public $attr_collections = array( 0018 // The inclusion routine differs from the Abstract Modules but 0019 // is in line with the DTD and XML Schemas. 0020 'Style' => array('style' => false), // see constructor 0021 'Core' => array(0 => array('Style')) 0022 ); 0023 0024 /** 0025 * @param HTMLPurifier_Config $config 0026 */ 0027 public function setup($config) 0028 { 0029 $this->attr_collections['Style']['style'] = new HTMLPurifier_AttrDef_CSS(); 0030 } 0031 } 0032 0033 // vim: et sw=4 sts=4