69        if (empty($children)) {
 
   79        $initial_ws = array();
 
   80        $after_caption_ws = array();
 
   81        $after_thead_ws = array();
 
   82        $after_tfoot_ws = array();
 
   91        $ws_accum =& $initial_ws;
 
   93        foreach ($children as $node) {
 
   98            switch ($node->name) {
 
  104                $ws_accum =& $content;
 
  108                if ($caption !== 
false)  
break;
 
  110                $ws_accum =& $after_caption_ws;
 
  120                if ($thead === 
false) {
 
  122                    $ws_accum =& $after_thead_ws;
 
  133                    $node->name = 
'tbody';
 
  135                    $ws_accum =& $content;
 
  141                if ($tfoot === 
false) {
 
  143                    $ws_accum =& $after_tfoot_ws;
 
  145                    $node->name = 
'tbody';
 
  147                    $ws_accum =& $content;
 
  160                if (!empty($node->is_whitespace)) {
 
  167        if (empty($content)) {
 
  172        if ($caption !== 
false) {
 
  174            $ret = array_merge(
$ret, $after_caption_ws);
 
  176        if (
$cols !== 
false) {
 
  179        if ($thead !== 
false) {
 
  181            $ret = array_merge(
$ret, $after_thead_ws);
 
  183        if ($tfoot !== 
false) {
 
  185            $ret = array_merge(
$ret, $after_tfoot_ws);
 
  190            $current_tr_tbody = 
null;
 
  192            foreach($content as $node) {
 
  193                switch ($node->name) {
 
  195                    $current_tr_tbody = 
null;
 
  199                    if ($current_tr_tbody === 
null) {
 
  201                        $ret[] = $current_tr_tbody;
 
  203                    $current_tr_tbody->children[] = $node;
 
  207                    if ($current_tr_tbody === 
null) {
 
  210                        $current_tr_tbody->children[] = $node;
 
An exception for terminatinating execution or to throw for unit testing.
validateChildren($children, $config, $context)
Defines allowed child nodes and validates nodes against it.
Concrete element node class.