Skip to content

Commit 5336ebe

Browse files
committed
Lint that comments are text_type
1 parent 22c2b1a commit 5336ebe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

html5lib/filters/lint.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ def __iter__(self):
4949
assert start == (namespace, name)
5050

5151
elif type == "Comment":
52-
pass
52+
data = token["data"]
53+
assert isinstance(data, text_type)
5354

5455
elif type in ("Characters", "SpaceCharacters"):
5556
data = token["data"]

0 commit comments

Comments
 (0)