aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcorvid <devnull@localhost>2015-04-12 17:35:43 +0000
committercorvid <devnull@localhost>2015-04-12 17:35:43 +0000
commit5e00c2e9f8ac73c29fc44e348e9e2016639832f0 (patch)
tree62651b1a2b9d461583b920e6e75f6b4e3e7f2058 /src
parent0f75231b36b96b50c0ee910f0623239d6824e40e (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/html.cc6
1 files changed, 5 insertions, 1 deletions
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, "<!DOCTYPE html>") ||
- !dStrAsciiCasecmp(ntag, "<!DOCTYPE html >")) {
+ !dStrAsciiCasecmp(ntag, "<!DOCTYPE html >") ||
+ !dStrAsciiCasecmp(ntag,
+ "<!DOCTYPE html SYSTEM \"about:legacy-compat\">") ||
+ !dStrAsciiCasecmp(ntag,
+ "<!DOCTYPE html SYSTEM 'about:legacy-compat'>")) {
html->DocType = DT_HTML;
html->DocTypeVersion = 5.0f;
}