diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2021-11-23 00:35:24 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2021-11-23 00:35:24 +0100 |
| commit | 898b770726629b87df73a1064ee98f6a670269af (patch) | |
| tree | e7028284afc98b56df13dbb763c8004873cb851b /test | |
| parent | 6908f7be4c7e620ac1ee4db9bdbf4cc5100e9e5a (diff) | |
Avoid quirks mode by specifying doctype html
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_document.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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 = "<html><head><title>title</title>" + std::string content = "<!DOCTYPE html><html><head><title>title</title>" "<link href=\"style.css\" rel=\"stylesheet\"/>" "</head><body>body</body></html>"; @@ -48,7 +48,7 @@ TEST(document, script) { MockTransport transport; MockResponse response; - std::string content = "<html><head><title/>" + 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>"; |
