aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/html.cc3
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;
}