From 5e00c2e9f8ac73c29fc44e348e9e2016639832f0 Mon Sep 17 00:00:00 2001 From: corvid Date: Sun, 12 Apr 2015 17:35:43 +0000 Subject: more html5 doctype strings Followed a link to instructables.com and found that they use one of these. I'm a little surprised to see one of these strings around. A minute of research shows: Apparently it generally has something to do with xslt restrictions. --- src/html.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/html.cc') diff --git a/src/html.cc b/src/html.cc index 1344c69c..d8000328 100644 --- a/src/html.cc +++ b/src/html.cc @@ -1655,7 +1655,11 @@ static void Html_parse_doctype(DilloHtml *html, const char *tag, int tagsize) html->DocTypeVersion = 2.0f; } } else if (!dStrAsciiCasecmp(ntag, "") || - !dStrAsciiCasecmp(ntag, "")) { + !dStrAsciiCasecmp(ntag, "") || + !dStrAsciiCasecmp(ntag, + "") || + !dStrAsciiCasecmp(ntag, + "")) { html->DocType = DT_HTML; html->DocTypeVersion = 5.0f; } -- cgit v1.2.3