diff options
author | corvid <corvid@dillo.org> | 2013-09-05 19:48:03 +0000 |
---|---|---|
committer | corvid <corvid@dillo.org> | 2013-09-05 19:48:03 +0000 |
commit | b6d6d06a451e5cc411b3d06cd30317ba66381d65 (patch) | |
tree | b6bd611713c6b1f4ad7851eefdd72de40f3fecc7 /src/html.cc | |
parent | 560b9fb24cb4cbba17ce76830514eac34bfb552d (diff) |
don't require STYLE type attribute for html5
Diffstat (limited to 'src/html.cc')
-rw-r--r-- | src/html.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/html.cc b/src/html.cc index 2fd9244f..99c14dbf 100644 --- a/src/html.cc +++ b/src/html.cc @@ -1766,7 +1766,8 @@ static void Html_tag_open_style(DilloHtml *html, const char *tag, int tagsize) html->loadCssFromStash = true; if (!(attrbuf = a_Html_get_attr(html, tag, tagsize, "type"))) { - BUG_MSG("type attribute is required for <style>\n"); + if (html->DocType != DT_HTML || html->DocTypeVersion <= 4.01f) + BUG_MSG("type attribute is required for <style>\n"); } else if (dStrAsciiCasecmp(attrbuf, "text/css")) { html->loadCssFromStash = false; } |