src/Tokens/Elements/Head.php 1 location
|
@@ 45-50 (lines=6) @@
|
| 42 |
|
continue; |
| 43 |
|
} |
| 44 |
|
|
| 45 |
|
if (!$child instanceof MetadataContent) { |
| 46 |
|
$logger->debug('Removing ' . $child . '. Only children of metadata content allowed.'); |
| 47 |
|
$this->removeChild($child); |
| 48 |
|
|
| 49 |
|
continue; |
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
if ($child->getType() != Token::ELEMENT) { |
| 53 |
|
continue; |
src/Tokens/Elements/Picture.php 1 location
|
@@ 53-58 (lines=6) @@
|
| 50 |
|
continue; |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
if ($child->getName() != 'source') { |
| 54 |
|
$logger->debug('Removing ' . $child . '. Only one "img" element and zero to many "source" elements allowed as children of the "picture" element.'); |
| 55 |
|
$this->removeChild($child); |
| 56 |
|
|
| 57 |
|
continue; |
| 58 |
|
} |
| 59 |
|
} |
| 60 |
|
} |
| 61 |
|
} |