Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix 'NameError: global name 'nameLower' is not defined' in processDoc…

…type
  • Loading branch information...
commit 99d0938851b09f990546cd5dd249f0374af5fef8 1 parent 09baf2d
Mark Pilgrim authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  src/html5lib/html5parser.py
View
3  src/html5lib/html5parser.py
@@ -335,8 +335,7 @@ def processDoctype(self, token):
if publicId != "":
publicId = publicId.translate(asciiUpper2Lower)
-
- if ((not correct) or nameLower != "html"
+ if ((not correct) or token["name"] != "html"
or publicId in
("+//silmaril//dtd html pro v0r11 19970101//en",
"-//advasoft ltd//dtd html 3.0 aswedit + extensions//en",
Please sign in to comment.
Something went wrong with that request. Please try again.