summaryrefslogtreecommitdiff
path: root/src/HTML5/Serializer
diff options
context:
space:
mode:
authorAsmir Mustafic <[email protected]>2016-08-19 10:27:17 +0200
committerAsmir Mustafic <[email protected]>2016-08-19 10:30:18 +0200
commit24257c8ed81e52fdd773c501d6234d93581f82dd (patch)
tree02199fbb1a560824819f1faf3b4ffa33b22f53d8 /src/HTML5/Serializer
parent4c3a92351e499a907ff6073c5b3066dde44df555 (diff)
Alternative implementation of https://github.com/Masterminds/html5-php/pull/115
Diffstat (limited to 'src/HTML5/Serializer')
-rw-r--r--src/HTML5/Serializer/OutputRules.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/HTML5/Serializer/OutputRules.php b/src/HTML5/Serializer/OutputRules.php
index d4d6bb1..a22683c 100644
--- a/src/HTML5/Serializer/OutputRules.php
+++ b/src/HTML5/Serializer/OutputRules.php
@@ -223,6 +223,8 @@ class OutputRules implements \Masterminds\HTML5\Serializer\RulesInterface
foreach ($ele->childNodes as $child) {
if ($child instanceof \DOMCharacterData) {
$this->wr($child->data);
+ } elseif ($child instanceof \DOMElement) {
+ $this->element($child);
}
}
} else {