2007-02-04 18:27:59 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
2007-02-04 20:09:35 +00:00
|
|
|
* XHTML 1.1 Edit Module, defines editing-related elements. Text Extension
|
|
|
|
* Module.
|
2007-02-04 18:27:59 +00:00
|
|
|
*/
|
|
|
|
class HTMLPurifier_HTMLModule_StyleAttribute extends HTMLPurifier_HTMLModule
|
|
|
|
{
|
2013-07-16 11:56:14 +00:00
|
|
|
/**
|
|
|
|
* @type string
|
|
|
|
*/
|
2007-11-25 02:24:39 +00:00
|
|
|
public $name = 'StyleAttribute';
|
2013-07-16 11:56:14 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @type array
|
|
|
|
*/
|
2007-11-25 02:24:39 +00:00
|
|
|
public $attr_collections = array(
|
2007-02-04 20:09:35 +00:00
|
|
|
// The inclusion routine differs from the Abstract Modules but
|
|
|
|
// is in line with the DTD and XML Schemas.
|
|
|
|
'Style' => array('style' => false), // see constructor
|
2007-02-04 18:27:59 +00:00
|
|
|
'Core' => array(0 => array('Style'))
|
|
|
|
);
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2013-07-16 11:56:14 +00:00
|
|
|
/**
|
|
|
|
* @param HTMLPurifier_Config $config
|
|
|
|
*/
|
|
|
|
public function setup($config)
|
|
|
|
{
|
2007-02-05 03:05:46 +00:00
|
|
|
$this->attr_collections['Style']['style'] = new HTMLPurifier_AttrDef_CSS();
|
2007-02-04 18:27:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2008-12-06 09:24:59 +00:00
|
|
|
// vim: et sw=4 sts=4
|