mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
[Bug #921657] Allow '@' in unquoted HTML attributes. Not strictly legal according to the HTML REC, but HTMLParser is already a pretty loose parser. Reported by Bernd Zimmermann.
This commit is contained in:
parent
9021c95595
commit
b7d8ce0275
2 changed files with 5 additions and 1 deletions
|
@ -204,6 +204,10 @@ DOCTYPE html [
|
|||
self._run_check("<e a=rgb(1,2,3)>", [
|
||||
("starttag", "e", [("a", "rgb(1,2,3)")]),
|
||||
])
|
||||
# Regression test for SF bug #921657.
|
||||
self._run_check("<a href=mailto:xyz@example.com>", [
|
||||
("starttag", "a", [("href", "mailto:xyz@example.com")]),
|
||||
])
|
||||
|
||||
def test_attr_entity_replacement(self):
|
||||
self._run_check("""<a b='&><"''>""", [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue