Changes between Initial Version and Version 1 of Ticket #32547
- Timestamp:
- Mar 14, 2021, 9:13:16 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #32547 – Description
initial v1 2 2 3 3 The docs for assertHTMLEqual says "html1 and html2 must be valid HTML.". The formulation suggest that html validation is enforced. But is is actually easy to get test succeeding with invalid html. Eg. 4 ``` 4 {{{ 5 5 SimpleTestCase.assertHTMLEqual(None, '<div class="bling" class="blang">', '<div class="bling" class="blang">') 6 ``` 6 }}} 7 7 The code rely on Python's HTMLParser (https://docs.python.org/3/library/html.parser.html) for which the documentation states it produce parsers "able to parse invalid markup.". 8 8