We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fcf0d4a commit b08102bCopy full SHA for b08102b
1 file changed
src/html5lib/treewalkers/_base.py
@@ -52,7 +52,8 @@ def comment(self, data):
52
return {"type": "Comment", "data": unicode(data)}
53
54
def doctype(self, name, publicId=None, systemId=None, correct=True):
55
- return {"type": "Doctype", "name": name and unicode(name) or None,
+ return {"type": "Doctype",
56
+ "name": name is not None and unicode(name) or u"",
57
"publicId": publicId, "systemId": systemId,
58
"correct": correct}
59
0 commit comments