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