diff options
author | Nicolas Lœuillet <nicolas@loeuillet.org> | 2014-02-21 15:57:10 +0100 |
---|---|---|
committer | Nicolas Lœuillet <nicolas@loeuillet.org> | 2014-02-21 15:57:10 +0100 |
commit | 99679d06884120c57f43b44e55e03595f1f87bed (patch) | |
tree | a3f2a1aa1afdaeca1386d0c6e8a75344fd2241fb /inc/3rdparty/htmlpurifier/HTMLPurifier/HTMLModule/Object.php | |
parent | 655214ab30ee84884dc408488b85586f36263fcb (diff) | |
parent | d3b47e94705e17b3ba3529cbb1dc6efe69c5d2b7 (diff) | |
download | wallabag-1.5.2.tar.gz wallabag-1.5.2.tar.zst wallabag-1.5.2.zip |
Merge pull request #481 from wallabag/dev1.5.2
1.5.2
Diffstat (limited to 'inc/3rdparty/htmlpurifier/HTMLPurifier/HTMLModule/Object.php')
-rw-r--r-- | inc/3rdparty/htmlpurifier/HTMLPurifier/HTMLModule/Object.php | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/inc/3rdparty/htmlpurifier/HTMLPurifier/HTMLModule/Object.php b/inc/3rdparty/htmlpurifier/HTMLPurifier/HTMLModule/Object.php new file mode 100644 index 00000000..d388b24c --- /dev/null +++ b/inc/3rdparty/htmlpurifier/HTMLPurifier/HTMLModule/Object.php | |||
@@ -0,0 +1,62 @@ | |||
1 | <?php | ||
2 | |||
3 | /** | ||
4 | * XHTML 1.1 Object Module, defines elements for generic object inclusion | ||
5 | * @warning Users will commonly use <embed> to cater to legacy browsers: this | ||
6 | * module does not allow this sort of behavior | ||
7 | */ | ||
8 | class HTMLPurifier_HTMLModule_Object extends HTMLPurifier_HTMLModule | ||
9 | { | ||
10 | /** | ||
11 | * @type string | ||
12 | */ | ||
13 | public $name = 'Object'; | ||
14 | |||
15 | /** | ||
16 | * @type bool | ||
17 | */ | ||
18 | public $safe = false; | ||
19 | |||
20 | /** | ||
21 | * @param HTMLPurifier_Config $config | ||
22 | */ | ||
23 | public function setup($config) | ||
24 | { | ||
25 | $this->addElement( | ||
26 | 'object', | ||
27 | 'Inline', | ||
28 | 'Optional: #PCDATA | Flow | param', | ||
29 | 'Common', | ||
30 | array( | ||
31 | 'archive' => 'URI', | ||
32 | 'classid' => 'URI', | ||
33 | 'codebase' => 'URI', | ||
34 | 'codetype' => 'Text', | ||
35 | 'data' => 'URI', | ||
36 | 'declare' => 'Bool#declare', | ||
37 | 'height' => 'Length', | ||
38 | 'name' => 'CDATA', | ||
39 | 'standby' => 'Text', | ||
40 | 'tabindex' => 'Number', | ||
41 | 'type' => 'ContentType', | ||
42 | 'width' => 'Length' | ||
43 | ) | ||
44 | ); | ||
45 | |||
46 | $this->addElement( | ||
47 | 'param', | ||
48 | false, | ||
49 | 'Empty', | ||
50 | null, | ||
51 | array( | ||
52 | 'id' => 'ID', | ||
53 | 'name*' => 'Text', | ||
54 | 'type' => 'Text', | ||
55 | 'value' => 'Text', | ||
56 | 'valuetype' => 'Enum#data,ref,object' | ||
57 | ) | ||
58 | ); | ||
59 | } | ||
60 | } | ||
61 | |||
62 | // vim: et sw=4 sts=4 | ||