diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-02-01 20:52:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-01 20:52:52 (GMT) |
commit | 0869a713f21f4b2fe021d802cf18f1b1af53695f (patch) | |
tree | 4e14dbe1f19ed86ac0000e9d239794a1341c82b3 /Lib/html | |
parent | aab84a58063e68cb7ff5f7b8d96c431200d0e340 (diff) | |
download | cpython-0869a713f21f4b2fe021d802cf18f1b1af53695f.zip cpython-0869a713f21f4b2fe021d802cf18f1b1af53695f.tar.gz cpython-0869a713f21f4b2fe021d802cf18f1b1af53695f.tar.bz2 |
bpo-41748: Handles unquoted attributes with commas (GH-24072)
* bpo-41748: Adds tests for unquoted attributes with comma
* bpo-41748: Handles unquoted attributes with comma
* bpo-41748: Addresses review comments
* bpo-41748: Addresses review comments
* Adds more test cases
* Simplifies the regex for handling spaces
* bpo-41748: Moves attributes tests under the right class
* bpo-41748: Addresses review about duplicate attributes
* bpo-41748: Adds NEWS.d entry for this patch
(cherry picked from commit 9eb11a139fac5514d8456626806a68b3e3b7eafb)
Co-authored-by: Karl Dubost <karl+github@la-grange.net>
Diffstat (limited to 'Lib/html')
-rw-r--r-- | Lib/html/parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/html/parser.py b/Lib/html/parser.py index de81879..d19684e 100644 --- a/Lib/html/parser.py +++ b/Lib/html/parser.py @@ -47,7 +47,7 @@ locatestarttagend_tolerant = re.compile(r""" |"[^"]*" # LIT-enclosed value |(?!['"])[^>\s]* # bare value ) - (?:\s*,)* # possibly followed by a comma + \s* # possibly followed by a space )?(?:\s|/(?!>))* )* )? |