friendica/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/StyleAttribute.php

34 lines
780 B
PHP
Raw Normal View History

2010-09-08 23:14:17 -04:00
<?php
/**
* XHTML 1.1 Edit Module, defines editing-related elements. Text Extension
* Module.
*/
class HTMLPurifier_HTMLModule_StyleAttribute extends HTMLPurifier_HTMLModule
{
2016-02-09 05:06:17 -05:00
/**
* @type string
*/
2010-09-08 23:14:17 -04:00
public $name = 'StyleAttribute';
2016-02-09 05:06:17 -05:00
/**
* @type array
*/
2010-09-08 23:14:17 -04: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 05:06:17 -05:00
/**
* @param HTMLPurifier_Config $config
*/
public function setup($config)
{
2010-09-08 23:14:17 -04:00
$this->attr_collections['Style']['style'] = new HTMLPurifier_AttrDef_CSS();
}
}
// vim: et sw=4 sts=4