def test_parse_html(self): self.assertEqual( DOM_HTML5LIB.render_debug( DOM_HTML5LIB.parse_html("<p><span>Test text</span></p>") ), "<p><span>Test text</span></p>", )
def test_html5lib_html_parsing(self): self.assertEqual( DOM_HTML5LIB.render_debug( DOM_HTML5LIB.parse_html('<p>Invalid > " &</p>')), '<p>Invalid > " &</p>', )
def test_html5lib_html_parsing(self): self.assertEqual(DOM_HTML5LIB.render_debug(DOM_HTML5LIB.parse_html('<p>Invalid > " &</p>')), '<p>Invalid > " &</p>')
def test_parse_html(self): self.assertEqual(DOM_HTML5LIB.render_debug(DOM_HTML5LIB.parse_html('<p><span>Test text</span></p>')), '<p><span>Test text</span></p>')