8000 fix 'NameError: global name 'nameLower' is not defined' in processDoc… · wabato/html5lib-python@03c7960 · GitHub
[go: up one dir, main page]

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

Appearance settings

Commit 03c7960

Browse files
author
Mark Pilgrim
committed
fix 'NameError: global name 'nameLower' is not defined' in processDoctype
1 parent 0a9de87 commit 03c7960

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
if publicId != "":
336336
publicId = publicId.translate(asciiUpper2Lower)
337337

338-
339-
if ((not correct) or nameLower != "html"
338+
if ((not correct) or token["name"] != "html"
340339
or publicId in
341340
("+//silmaril//dtd html pro v0r11 19970101//en",
342341
"-//advasoft ltd//dtd html 3.0 aswedit + extensions//en",

0 commit comments

Comments
 (0)
0