diff options
author | Matt Farina <[email protected]> | 2013-05-27 21:44:45 -0400 |
---|---|---|
committer | Matt Farina <[email protected]> | 2013-05-27 21:44:45 -0400 |
commit | 25a80d1417452b42a39acc7e64446e3881a6d895 (patch) | |
tree | 8893bc913f91157d4612921d9de9042dde22a3f6 | |
parent | 0e89a81a3036209fa90fd187bd59e104367ce5e5 (diff) |
Handling in the traverser the case where the dom passed in is a node list.
-rw-r--r-- | src/HTML5/Serializer/Traverser.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/HTML5/Serializer/Traverser.php b/src/HTML5/Serializer/Traverser.php index 27a52ff..d3f2828 100644 --- a/src/HTML5/Serializer/Traverser.php +++ b/src/HTML5/Serializer/Traverser.php @@ -64,7 +64,8 @@ class Traverser { } // If NodeList, loop elseif ($this->dom instanceof \DOMNodeList) { - // Loop through the list + // If this is a NodeList of DOMDocuments this will not work. + $this->children($this->dom); } // Else assume this is a DOMNode-like datastructure. else { |