#NEWLINE# def htmleq_( html1 , html2 , msg = None ) : #NEWLINE# #INDENT# '\n    Asserts that two HTML snippets are semantically the same.\n    Whitespace in most cases is ignored, and attribute ordering is not\n    significant. The passed-in arguments must be valid HTML.\n\n    See ticket 16921: https://code.djangoproject.com/ticket/16921\n\n    ' #NEWLINE# dom1 = assert_and_parse_html ( html2 , msg , 'First argument is not valid HTML:' ) #NEWLINE# dom2 = assert_and_parse_html ( html2 , msg , 'Second argument is not valid HTML:' ) #NEWLINE# eq_ ( dom1 , dom2 )