void () { testHtmlBody("simple text", "simple text"); testHtmlBody("<body>multi<br>line</body>", "<body>multi\nline</body>"); testHtmlBody("normal html", "<html><body>normal html</body></html>"); testHtmlBody("no body", "<html>no body</html>"); testHtmlBody("no closing tags", "<html><body>no closing tags"); testHtmlBody("no closing body tag", "<html><body>no closing body tag</html>"); testHtmlBody("no closing html tag", "<html><body>no closing html tag</body>"); testHtmlBody("mixed closing tags", "<html><body>mixed closing tags</html></body>"); testHtmlBody("<!--comment-->", "<html><body><!--comment--></body></html>"); testHtmlBody("leading comment", "<!--comment--><html><body>leading comment</body></html>"); testHtmlBody("trailing comment", "<html><body>trailing comment</body></html><!--comment-->"); }