diff options
author | corvid <devnull@localhost> | 2015-04-12 17:35:43 +0000 |
---|---|---|
committer | corvid <devnull@localhost> | 2015-04-12 17:35:43 +0000 |
commit | 5e00c2e9f8ac73c29fc44e348e9e2016639832f0 (patch) | |
tree | 62651b1a2b9d461583b920e6e75f6b4e3e7f2058 /src/html.cc | |
parent | 0f75231b36b96b50c0ee910f0623239d6824e40e (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/html.cc')
-rw-r--r-- | src/html.cc | 6 |
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; } |