Commit baa8fbb1 authored by Fred Drake's avatar Fred Drake

Add regression test for the typo-buglet Jeremy fixed, and fix the bug that

uncovered.
parent 314383c4
...@@ -195,7 +195,7 @@ class ParserBase: ...@@ -195,7 +195,7 @@ class ParserBase:
j = rawdata.find(")", j) + 1 j = rawdata.find(")", j) + 1
else: else:
return -1 return -1
while rawdata[j:j+1] in string.whitespace: while rawdata[j:j+1].isspace():
j = j + 1 j = j + 1
if not rawdata[j:]: if not rawdata[j:]:
# end of buffer, incomplete # end of buffer, incomplete
......
...@@ -294,6 +294,12 @@ DOCTYPE html [ ...@@ -294,6 +294,12 @@ DOCTYPE html [
("endtag", "script"), ("endtag", "script"),
]) ])
def check_enumerated_attr_type(self):
s = "<!DOCTYPE doc [<!ATTLIST doc attr (a | b) >]>"
self._run_check(s, [
('decl', 'DOCTYPE doc [<!ATTLIST doc attr (a | b) >]'),
])
# Support for the Zope regression test framework: # Support for the Zope regression test framework:
def test_suite(): def test_suite():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment