2010-09-09 05:14:17 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* XHTML 1.1 Edit Module, defines editing-related elements. Text Extension
|
|
|
|
* Module.
|
|
|
|
*/
|
|
|
|
class HTMLPurifier_HTMLModule_StyleAttribute extends HTMLPurifier_HTMLModule
|
|
|
|
{
|
2016-02-09 11:06:17 +01:00
|
|
|
/**
|
|
|
|
* @type string
|
|
|
|
*/
|
2010-09-09 05:14:17 +02:00
|
|
|
public $name = 'StyleAttribute';
|
2016-02-09 11:06:17 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @type array
|
|
|
|
*/
|
2010-09-09 05:14:17 +02:00
|
|
|
public $attr_collections = array(
|
|
|
|
// The inclusion routine differs from the Abstract Modules but
|
|
|
|
// is in line with the DTD and XML Schemas.
|
|
|
|
'Style' => array('style' => false), // see constructor
|
|
|
|
'Core' => array(0 => array('Style'))
|
|
|
|
);
|
|
|
|
|
2016-02-09 11:06:17 +01:00
|
|
|
/**
|
|
|
|
* @param HTMLPurifier_Config $config
|
|
|
|
*/
|
|
|
|
public function setup($config)
|
|
|
|
{
|
2010-09-09 05:14:17 +02:00
|
|
|
$this->attr_collections['Style']['style'] = new HTMLPurifier_AttrDef_CSS();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// vim: et sw=4 sts=4
|