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
commit706b795680528972802ccb3a9d7595d3014353fe (patch)
tree4736bdf938099b8209d7547f2b491002fefbf789 /src
parentbe3c2cdc23b61431bb2d620c0aa9a87e7fcb7f0c (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 f1177bb1..c5fa470c 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -1624,7 +1624,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;
}