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

Commit9eff304

Browse files
committed
Allow None as a doctype tagname in lint
1 parent2a5d7af commit9eff304

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎html5lib/filters/lint.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ def __iter__(self):
8080

8181
eliftype=="Doctype":
8282
name=token["name"]
83-
ifnotisinstance(name,text_type):
84-
raiseLintError("Tag name is not a string: %(tag)r"% {"tag":name})
83+
ifnameisnotNoneandnotisinstance(name,text_type):
84+
raiseLintError("Tag name is not a string or None: %(tag)r"% {"tag":name})
8585
# XXX: what to do with token["data"] ?
8686

8787
eliftypein ("ParseError","SerializeError"):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp