about summary refs log tree commit diff stats
path: root/src/html
diff options
context:
space:
mode:
Diffstat (limited to 'src/html')
-rw-r--r--src/html/dom.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim
index b20567fb..4318c517 100644
--- a/src/html/dom.nim
+++ b/src/html/dom.nim
@@ -1442,7 +1442,7 @@ func countChildren(node: Node, nodeType: NodeType): int =
 func hasChild(node: Node, nodeType: NodeType): bool =
   for child in node.childList:
     if child.nodeType == nodeType:
-      return false
+      return true
 
 func previousSibling*(node: Node): Node {.jsfget.} =
   let i = node.index - 1