class Table extends OpenElement implements FlowContent
17
{
18
/**
19
* @todo Deal with validation of the order of child elements.
20
*/
21
6
protected function removeInvalidChildren(LoggerInterface $logger)
22
{
23
6
foreach ($this->children as $child) {
24
6
if ($child instanceof NonParticipating ||
25
6
$child instanceof Caption ||
26
6
$child instanceof Colgroup ||
27
6
$child instanceof Thead ||
28
6
$child instanceof Tbody ||
29
6
$child instanceof Tr ||
30
4
$child instanceof Tfoot ||
31
6
$child instanceof ScriptSupporting) {
32
6
continue;
33
}
34
35
1
$logger->debug('Removing ' . $child . '. Only "caption", "colgroup", "thead", "tbody", "tr", "tfoot", and script supporting elements allowed as children of "table" element.');