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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy