Skip to content

Commit bb790b6

Browse files
committed
Remove parse error on encountering a windows 1252 entity for now since the spec does not require this. We may want to change this later
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40411
1 parent 8c4b7c3 commit bb790b6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/tokenizer.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,10 @@ def consumeNumberEntity(self, isHex):
136136
# If the integer is between 127 and 160 (so 128 and bigger and 159 and
137137
# smaller) we need to do the "windows trick".
138138
if 127 < charAsInt < 160:
139-
self.tokenQueue.append({"type": "ParseError", "data":
140-
_("Entity used with illegal number (windows-1252 reference).")})
139+
#XXX - removed parse error from windows 1252 entity for now
140+
#we may want to reenable this later
141+
#self.tokenQueue.append({"type": "ParseError", "data":
142+
# _("Entity used with illegal number (windows-1252 reference).")})
141143

142144
charAsInt = entitiesWindows1252[charAsInt - 128]
143145

0 commit comments

Comments
 (0)