Skip to content

Commit ad96596

Browse files
committed
hasChildNodes is a method, not a property, fixes issue 170
1 parent 68ad299 commit ad96596

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html5lib/treewalkers/dom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def getNodeDetails(self, node):
2222
"name": attr.localName,
2323
"value": attr.value})
2424
return (_base.ELEMENT, node.namespaceURI, node.nodeName,
25-
attrs, node.hasChildNodes)
25+
attrs, node.hasChildNodes())
2626

2727
elif node.nodeType == Node.COMMENT_NODE:
2828
return _base.COMMENT, node.nodeValue

0 commit comments

Comments
 (0)