Merge commit 'catalyst/MOODLE_19_STABLE' into mdl19-linuxchix
[moodle-linuxchix.git] / lib / htmlpurifier / HTMLPurifier / ChildDef / Empty.php
blob6e637307701c944b8daf669c71295556406b97fb
1 <?php
3 require_once 'HTMLPurifier/ChildDef.php';
5 /**
6 * Definition that disallows all elements.
7 * @warning validateChildren() in this class is actually never called, because
8 * empty elements are corrected in HTMLPurifier_Strategy_MakeWellFormed
9 * before child definitions are parsed in earnest by
10 * HTMLPurifier_Strategy_FixNesting.
12 class HTMLPurifier_ChildDef_Empty extends HTMLPurifier_ChildDef
14 var $allow_empty = true;
15 var $type = 'empty';
16 function HTMLPurifier_ChildDef_Empty() {}
17 function validateChildren($tokens_of_children, $config, &$context) {
18 return array();