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) {
Definition for list containers ul and ol.
Concrete element node class.
validateChildren($children, $config, $context)
Defines allowed child nodes and validates nodes against it.
Create styles array
The data for the language used.