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 b99d4cf commit 74bedabCopy full SHA for 74bedab
html5lib/filters/lint.py
@@ -62,7 +62,14 @@ def __iter__(self):
62
elif type == "Doctype":
63
name = token["name"]
64
assert name is None or isinstance(name, text_type)
65
- # XXX: what to do with token["data"] ?
+ assert token["publicId"] is None or isinstance(name, text_type)
66
+ assert token["systemId"] is None or isinstance(name, text_type)
67
+
68
+ elif type == "Entity":
69
+ assert isinstance(token["name"], text_type)
70
71
+ elif type == "SerializerError":
72
+ assert isinstance(token["data"], text_type)
73
74
else:
75
assert False, "Unknown token type: %(type)s" % {"type": type}
0 commit comments