Changes between Initial Version and Version 1 of Ticket #32547


Ignore:
Timestamp:
Mar 14, 2021, 9:13:16 AM (3 years ago)
Author:
François Poulain
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32547 – Description

    initial v1  
    22
    33The 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{{{
    55SimpleTestCase.assertHTMLEqual(None, '<div class="bling" class="blang">', '<div class="bling" class="blang">')
    6 ```
     6}}}
    77The 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.".
    88
Back to Top