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

Commit74bedab

Browse files
committed
Make sure lint is testing everything treewalkers can do.
1 parentb99d4cf commit74bedab

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

‎html5lib/filters/lint.py‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,14 @@ def __iter__(self):
6262
eliftype=="Doctype":
6363
name=token["name"]
6464
assertnameisNoneorisinstance(name,text_type)
65-
# XXX: what to do with token["data"] ?
65+
asserttoken["publicId"]isNoneorisinstance(name,text_type)
66+
asserttoken["systemId"]isNoneorisinstance(name,text_type)
67+
68+
eliftype=="Entity":
69+
assertisinstance(token["name"],text_type)
70+
71+
eliftype=="SerializerError":
72+
assertisinstance(token["data"],text_type)
6673

6774
else:
6875
assertFalse,"Unknown token type: %(type)s"% {"type":type}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp