Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5336ebe

Browse files
committed
Lint that comments are text_type
1 parent22c2b1a commit5336ebe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎html5lib/filters/lint.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ def __iter__(self):
4949
assertstart== (namespace,name)
5050

5151
eliftype=="Comment":
52-
pass
52+
data=token["data"]
53+
assertisinstance(data,text_type)
5354

5455
eliftypein ("Characters","SpaceCharacters"):
5556
data=token["data"]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp