Permalink
Browse files

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

…type
  • Loading branch information...
1 parent 09baf2d commit 99d0938851b09f990546cd5dd249f0374af5fef8 Mark Pilgrim committed Sep 30, 2009
Showing with 1 addition and 2 deletions.
  1. +1 −2 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",

0 comments on commit 99d0938

Please sign in to comment.