Automatic installer.php lang files by installer_builder (20070726)
[moodle-linuxchix.git] / lib / htmlpurifier / HTMLPurifier / ChildDef / Empty.php
blob1ab4fdd657c7a4fae50732fdecb04caace0d6be7
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();