mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
Accept commas in unquoted attribute values.
This closes SF patch #669683.
This commit is contained in:
parent
080cb3268f
commit
0834d77bc4
4 changed files with 10 additions and 2 deletions
|
@ -197,6 +197,10 @@ DOCTYPE html [
|
|||
self._run_check("""<a b='' c="">""", [
|
||||
("starttag", "a", [("b", ""), ("c", "")]),
|
||||
])
|
||||
# Regression test for SF patch #669683.
|
||||
self._run_check("<e a=rgb(1,2,3)>", [
|
||||
("starttag", "e", [("a", "rgb(1,2,3)")]),
|
||||
])
|
||||
|
||||
def test_attr_entity_replacement(self):
|
||||
self._run_check("""<a b='&><"''>""", [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue