[issue26084] HTMLParser mishandles last attribute in self-closing tag

Ezio Melotti report at bugs.python.org
Fri Jan 15 09:40:19 EST 2016


Ezio Melotti added the comment:

This is not a bug, as described in the HTML5 standard[0], if an unquoted attribute value is followed by a /, the / is included (the "anything else" branch of that list).
This is also what browsers do: try to create an HTML document that includes <img title=test/> and open it in a browser, then use the inspector to examine the result -- you will see <img title="test/"></img> (at least on firefox).
HTMLParser follows the HTML5 standard, so I'm closing this as "not a bug".
Thanks anyway for the report and to Xiang for pointing out that it's not a bug.

[0]: https://www.w3.org/TR/html5/syntax.html#attribute-value-%28unquoted%29-state

----------
resolution:  -> not a bug
stage: test needed -> resolved
status: open -> closed
versions: +Python 3.5, Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26084>
_______________________________________


More information about the Python-bugs-list mailing list