2006-11-22 18:55:15 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Definition that disallows all elements.
|
|
|
|
* @warning validateChildren() in this class is actually never called, because
|
|
|
|
* empty elements are corrected in HTMLPurifier_Strategy_MakeWellFormed
|
|
|
|
* before child definitions are parsed in earnest by
|
|
|
|
* HTMLPurifier_Strategy_FixNesting.
|
|
|
|
*/
|
|
|
|
class HTMLPurifier_ChildDef_Empty extends HTMLPurifier_ChildDef
|
|
|
|
{
|
2013-07-16 11:56:14 +00:00
|
|
|
/**
|
|
|
|
* @type bool
|
|
|
|
*/
|
2007-11-25 02:24:39 +00:00
|
|
|
public $allow_empty = true;
|
2013-07-16 11:56:14 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @type string
|
|
|
|
*/
|
2007-11-25 02:24:39 +00:00
|
|
|
public $type = 'empty';
|
2013-07-16 11:56:14 +00:00
|
|
|
|
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2013-10-21 05:18:59 +00:00
|
|
|
* @param HTMLPurifier_Node[] $children
|
2013-07-16 11:56:14 +00:00
|
|
|
* @param HTMLPurifier_Config $config
|
|
|
|
* @param HTMLPurifier_Context $context
|
|
|
|
* @return array
|
|
|
|
*/
|
2013-10-21 05:18:59 +00:00
|
|
|
public function validateChildren($children, $config, $context)
|
2013-07-16 11:56:14 +00:00
|
|
|
{
|
2006-11-22 18:55:15 +00:00
|
|
|
return array();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2008-12-06 09:24:59 +00:00
|
|
|
// vim: et sw=4 sts=4
|