From 25a80d1417452b42a39acc7e64446e3881a6d895 Mon Sep 17 00:00:00 2001 From: Matt Farina Date: Mon, 27 May 2013 21:44:45 -0400 Subject: Handling in the traverser the case where the dom passed in is a node list. --- src/HTML5/Serializer/Traverser.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.3