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 <rep...@bugs.python.org> <http://bugs.python.org/issue26084> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com