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
|
|
|
|
|
|
|
var $name = 'StyleAttribute';
|
2007-02-16 03:01:23 +00:00
|
|
|
var $type = 'define';
|
2007-02-05 03:05:46 +00:00
|
|
|
var $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'))
|
|
|
|
);
|
|
|
|
|
|
|
|
function HTMLPurifier_HTMLModule_StyleAttribute() {
|
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
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|