File indexing completed on 2024-05-12 06:02:04

0001 <?php
0002 
0003 /**
0004  * Definition that disallows all elements.
0005  * @warning validateChildren() in this class is actually never called, because
0006  *          empty elements are corrected in HTMLPurifier_Strategy_MakeWellFormed
0007  *          before child definitions are parsed in earnest by
0008  *          HTMLPurifier_Strategy_FixNesting.
0009  */
0010 class HTMLPurifier_ChildDef_Empty extends HTMLPurifier_ChildDef
0011 {
0012     /**
0013      * @type bool
0014      */
0015     public $allow_empty = true;
0016 
0017     /**
0018      * @type string
0019      */
0020     public $type = 'empty';
0021 
0022     public function __construct()
0023     {
0024     }
0025 
0026     /**
0027      * @param HTMLPurifier_Node[] $children
0028      * @param HTMLPurifier_Config $config
0029      * @param HTMLPurifier_Context $context
0030      * @return array
0031      */
0032     public function validateChildren($children, $config, $context)
0033     {
0034         return array();
0035     }
0036 }
0037 
0038 // vim: et sw=4 sts=4