[New-bugs-announce] [issue42821] HTMLParser: subsequent duplicate attributes should be ignored
karl
report at bugs.python.org
Mon Jan 4 03:00:54 EST 2021
New submission from karl <karl+pythonbugs at la-grange.net>:
This comes up while working on issue 41748
browser input
data:text/html,<!doctype html><div class="bar" class="foo">text</div>
browser output
<div class="bar">text</div>
Actual HTMLParser output
see https://github.com/python/cpython/pull/24072#discussion_r551158342
('starttag', 'div', [('class', 'bar'), ('class', 'foo')])]
Expected HTMLParser output
('starttag', 'div', [('class', 'bar')])]
----------
components: Library (Lib)
messages: 384308
nosy: karlcow
priority: normal
severity: normal
status: open
title: HTMLParser: subsequent duplicate attributes should be ignored
versions: Python 3.10
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42821>
_______________________________________
More information about the New-bugs-announce
mailing list