23    public $elements = array(
'li' => 
true, 
'ul' => 
true, 
'ol' => 
true);
 
   34        $this->whitespace = 
false;
 
   37        if (empty($children)) {
 
   42        if (!isset(
$config->getHTMLDefinition()->info[
'li'])) {
 
   43            trigger_error(
"Cannot allow ul/ol without allowing li", E_USER_WARNING);
 
   51        $all_whitespace = 
true;
 
   55        foreach ($children as $node) {
 
   56            if (!empty($node->is_whitespace)) {
 
   60            $all_whitespace = 
false; 
 
   62            if ($node->name === 
'li') {
 
   74                if ($current_li === 
null) {
 
   78                $current_li->children[] = $node;
 
   79                $current_li->empty = 
false; 
 
   85        if ($all_whitespace) {
 
An exception for terminatinating execution or to throw for unit testing.
Definition for list containers ul and ol.
validateChildren($children, $config, $context)
Defines allowed child nodes and validates nodes against it.
Concrete element node class.