We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a5d7af commit 9eff304Copy full SHA for 9eff304
html5lib/filters/lint.py
@@ -80,8 +80,8 @@ def __iter__(self):
80
81
elif type == "Doctype":
82
name = token["name"]
83
- if not isinstance(name, text_type):
84
- raise LintError("Tag name is not a string: %(tag)r" % {"tag": name})
+ if name is not None and not isinstance(name, text_type):
+ raise LintError("Tag name is not a string or None: %(tag)r" % {"tag": name})
85
# XXX: what to do with token["data"] ?
86
87
elif type in ("ParseError", "SerializeError"):
0 commit comments