mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-10 09:16:20 +02:00
[3.1.0] Implement Proprietary HTML module with <marquee>
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1572 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
32
library/HTMLPurifier/HTMLModule/Proprietary.php
Normal file
32
library/HTMLPurifier/HTMLModule/Proprietary.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Module defines proprietary tags and attributes in HTML.
|
||||
* @warning If this module is enabled, standards-compliance is off!
|
||||
*/
|
||||
class HTMLPurifier_HTMLModule_Proprietary extends HTMLPurifier_HTMLModule
|
||||
{
|
||||
|
||||
public $name = 'Proprietary';
|
||||
|
||||
public function __construct() {
|
||||
|
||||
$this->addElement('marquee', true, 'Inline', 'Flow', 'Common',
|
||||
array(
|
||||
'direction' => 'Enum#left,right,up,down',
|
||||
'behavior' => 'Enum#alternate',
|
||||
'width' => 'Length',
|
||||
'height' => 'Length',
|
||||
'scrolldelay' => 'Number',
|
||||
'scrollamount' => 'Number',
|
||||
'loop' => 'Number',
|
||||
'bgcolor' => 'Color',
|
||||
'hspace' => 'Pixels',
|
||||
'vspace' => 'Pixels',
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user