Merge commit 'catalyst/MOODLE_19_STABLE' into mdl19-linuxchix
[moodle-linuxchix.git] / lib / htmlpurifier / HTMLPurifier / HTMLModule / StyleAttribute.php
blobd121d7405b55a08942471493d22b5671e69b9b75
1 <?php
3 require_once 'HTMLPurifier/HTMLModule.php';
4 require_once 'HTMLPurifier/AttrDef/CSS.php';
6 /**
7 * XHTML 1.1 Edit Module, defines editing-related elements. Text Extension
8 * Module.
9 */
10 class HTMLPurifier_HTMLModule_StyleAttribute extends HTMLPurifier_HTMLModule
13 var $name = 'StyleAttribute';
14 var $attr_collections = array(
15 // The inclusion routine differs from the Abstract Modules but
16 // is in line with the DTD and XML Schemas.
17 'Style' => array('style' => false), // see constructor
18 'Core' => array(0 => array('Style'))
21 function HTMLPurifier_HTMLModule_StyleAttribute() {
22 $this->attr_collections['Style']['style'] = new HTMLPurifier_AttrDef_CSS();