2007-02-04 18:27:59 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once 'HTMLPurifier/HTMLModule.php';
|
2007-02-04 20:09:35 +00:00
|
|
|
require_once 'HTMLPurifier/AttrDef/CSS.php';
|
2007-02-04 18:27:59 +00:00
|
|
|
|
|
|
|
/**
|
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
|
|
|
|
{
|
2007-02-14 22:30:17 +00:00
|
|
|
|
2007-11-25 02:24:39 +00:00
|
|
|
public $name = 'StyleAttribute';
|
|
|
|
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'))
|
|
|
|
);
|
|
|
|
|
2007-11-29 04:29:51 +00:00
|
|
|
public function __construct() {
|
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
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|