Commit e37dbe4f authored by Fred Drake's avatar Fred Drake

Revise a test that requires "<tag attr=>" to be accepted -- it is not!

Add a check to ensure it raises an HTMLParseError.
parent 96b06b29
......@@ -162,8 +162,8 @@ text
("c", "yyy\t\nyyy"),
("d", "\txyz\n")])
])
self._run_check("""<a b='' c="" d=>""", [
("starttag", "a", [("b", ""), ("c", ""), ("d", "")]),
self._run_check("""<a b='' c="">""", [
("starttag", "a", [("b", ""), ("c", "")]),
])
def check_attr_entity_replacement(self):
......@@ -216,6 +216,7 @@ text
self._parse_error("<a foo='bar")
self._parse_error("<a foo='>'")
self._parse_error("<a foo='>")
self._parse_error("<a foo=>")
def check_declaration_junk_chars(self):
self._parse_error("<!DOCTYPE foo $ >")
......
......@@ -162,8 +162,8 @@ text
("c", "yyy\t\nyyy"),
("d", "\txyz\n")])
])
self._run_check("""<a b='' c="" d=>""", [
("starttag", "a", [("b", ""), ("c", ""), ("d", "")]),
self._run_check("""<a b='' c="">""", [
("starttag", "a", [("b", ""), ("c", "")]),
])
def check_attr_entity_replacement(self):
......@@ -216,6 +216,7 @@ text
self._parse_error("<a foo='bar")
self._parse_error("<a foo='>'")
self._parse_error("<a foo='>")
self._parse_error("<a foo=>")
def check_declaration_junk_chars(self):
self._parse_error("<!DOCTYPE foo $ >")
......
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