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-04 22:26:56 +00:00
|
|
|
var $attr_collections_info = 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-04 22:26:56 +00:00
|
|
|
$this->attr_collections_info['Style']['style'] = new HTMLPurifier_AttrDef_CSS();
|
2007-02-04 18:27:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|