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

Commit03c7960

Browse files
author
Mark Pilgrim
committed
fix 'NameError: global name 'nameLower' is not defined' in processDoctype
1 parent0a9de87 commit03c7960

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎src/html5lib/html5parser.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,7 @@ def processDoctype(self, token):
335335
ifpublicId!="":
336336
publicId=publicId.translate(asciiUpper2Lower)
337337

338-
339-
if ((notcorrect)ornameLower!="html"
338+
if ((notcorrect)ortoken["name"]!="html"
340339
orpublicIdin
341340
("+//silmaril//dtd html pro v0r11 19970101//en",
342341
"-//advasoft ltd//dtd html 3.0 aswedit + extensions//en",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp