[issue42821] HTMLParser: subsequent duplicate attributes should be ignored

2021-01-05 Thread Ezio Melotti
Ezio Melotti added the comment: If we follow the behavior of the browser, we will have to pick one of the two values and discard the other, making this value unaccessible. If we provide both, scripts and libraries that use HTMLParser will have access to both and can decide what to do. For

[issue42821] HTMLParser: subsequent duplicate attributes should be ignored

2021-01-04 Thread karl
New submission from karl : This comes up while working on issue 41748 browser input data:text/html,text browser output text Actual HTMLParser output see https://github.com/python/cpython/pull/24072#discussion_r551158342 ('starttag', 'div', [('class', 'bar'), ('class', 'foo')])] Expected