mirror of https://github.com/python/cpython
add tests for two cases that are handled correctly in the current code,
but that SF patch 1504676 as written mis-handles
This commit is contained in:
parent
72c9eff59e
commit
a16393efb7
|
@ -218,7 +218,9 @@ DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01//EN'
|
|||
"""Substitution of entities and charrefs in attribute values"""
|
||||
# SF bug #1452246
|
||||
self.check_events("""<a b=< c=<> d=<-> e='< '
|
||||
f="&xxx;" g=' !' h='Ǵ' i='x?a=b&c=d;'>""",
|
||||
f="&xxx;" g=' !' h='Ǵ'
|
||||
i='x?a=b&c=d;'
|
||||
j='&#42;' k='&#42;'>""",
|
||||
[("starttag", "a", [("b", "<"),
|
||||
("c", "<>"),
|
||||
("d", "<->"),
|
||||
|
@ -226,7 +228,10 @@ DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01//EN'
|
|||
("f", "&xxx;"),
|
||||
("g", " !"),
|
||||
("h", "Ǵ"),
|
||||
("i", "x?a=b&c=d;"), ])])
|
||||
("i", "x?a=b&c=d;"),
|
||||
("j", "*"),
|
||||
("k", "*"),
|
||||
])])
|
||||
|
||||
def test_attr_funky_names(self):
|
||||
self.check_events("""<a a.b='v' c:d=v e-f=v>""", [
|
||||
|
|
Loading…
Reference in New Issue