diff --git a/src/dhtmlparser/htmlelement.py b/src/dhtmlparser/htmlelement.py
index <HASH>..<HASH> 100755
--- a/src/dhtmlparser/htmlelement.py
+++ b/src/dhtmlparser/htmlelement.py
@@ -337,6 +337,9 @@ class HTMLElement(object):
         el = HTMLElement()
         el._container = True
         for child in childs:
+            if child.isEndTag():
+                continue
+
             if child.isAlmostEqual(tag_name, params, fn, case_sensitive):
                 el.childs.append(child)
Fixed bug in .wfind() which caused that endtags were also retunerd.