From fc12dc87e0330936fa80189349afb780432679f0 Mon Sep 17 00:00:00 2001 From: Wouter Scherphof Date: Tue, 2 Apr 2013 12:10:41 +0200 Subject: [PATCH] Made test succeed --- src/htmlparser/ElementNode.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/htmlparser/ElementNode.lua b/src/htmlparser/ElementNode.lua index 4d8fc3c..d6c99e8 100644 --- a/src/htmlparser/ElementNode.lua +++ b/src/htmlparser/ElementNode.lua @@ -141,9 +141,10 @@ local function select(self, s) resultset = Set:new() for subject in pairs(subjects) do local star = subject.deepernodes - if childrenonly then star = Set:new(subject.nodes) childrenonly = false end + if childrenonly then star = Set:new(subject.nodes) end resultset = resultset + star end + childrenonly = false if part == "*" then goto nextpart end local excludes, filter = Set:new() for t, w in string.gmatch(part,