From 898b770726629b87df73a1064ee98f6a670269af Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Tue, 23 Nov 2021 00:35:24 +0100 Subject: Avoid quirks mode by specifying doctype html --- test/test_document.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/test_document.cc b/test/test_document.cc index 352a14c..219f66f 100644 --- a/test/test_document.cc +++ b/test/test_document.cc @@ -16,7 +16,7 @@ TEST(document, sanity) { MockTransport transport; MockResponse response; - std::string content = "title" + std::string content = "title" "" "body"; @@ -48,7 +48,7 @@ TEST(document, script) { MockTransport transport; MockResponse response; - std::string content = "" + std::string content = "<!DOCTYPE html><html><head><title/>" "<script src=\"foo.js\" type=\"text/javascript\"></script>" "<script type=\"text/javascript\">alert(\"<foo>\");</script>" "</head><body/></html>"; -- cgit v1.2.3-70-g09d2