]>
Commit | Line | Data |
---|---|---|
d4949327 NL |
1 | <?php\r |
2 | \r | |
3 | /**\r | |
4 | * Definition that disallows all elements.\r | |
5 | * @warning validateChildren() in this class is actually never called, because\r | |
6 | * empty elements are corrected in HTMLPurifier_Strategy_MakeWellFormed\r | |
7 | * before child definitions are parsed in earnest by\r | |
8 | * HTMLPurifier_Strategy_FixNesting.\r | |
9 | */\r | |
10 | class HTMLPurifier_ChildDef_Empty extends HTMLPurifier_ChildDef\r | |
11 | {\r | |
12 | /**\r | |
13 | * @type bool\r | |
14 | */\r | |
15 | public $allow_empty = true;\r | |
16 | \r | |
17 | /**\r | |
18 | * @type string\r | |
19 | */\r | |
20 | public $type = 'empty';\r | |
21 | \r | |
22 | public function __construct()\r | |
23 | {\r | |
24 | }\r | |
25 | \r | |
26 | /**\r | |
27 | * @param HTMLPurifier_Node[] $children\r | |
28 | * @param HTMLPurifier_Config $config\r | |
29 | * @param HTMLPurifier_Context $context\r | |
30 | * @return array\r | |
31 | */\r | |
32 | public function validateChildren($children, $config, $context)\r | |
33 | {\r | |
34 | return array();\r | |
35 | }\r | |
36 | }\r | |
37 | \r | |
38 | // vim: et sw=4 sts=4\r |