aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcorvid <corvid@dillo.org>2013-09-10 19:43:27 +0000
committercorvid <corvid@dillo.org>2013-09-10 19:43:27 +0000
commitf059451d808b336bb44e47794cf566e34d6acd10 (patch)
treee0d79b0be80968e1af813073e9d2a6974c955205 /src
parent5f10d1a5fb3ec5837d7686329ff3236c3eb605bd (diff)
html5, action not required for FORM
Diffstat (limited to 'src')
-rw-r--r--src/form.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/form.cc b/src/form.cc
index f756a1c9..843a63c2 100644
--- a/src/form.cc
+++ b/src/form.cc
@@ -362,7 +362,8 @@ void Html_tag_open_form(DilloHtml *html, const char *tag, int tagsize)
if ((attrbuf = a_Html_get_attr(html, tag, tagsize, "action")))
action = a_Html_url_new(html, attrbuf, NULL, 0);
else {
- BUG_MSG("action attribute is required for <form>\n");
+ if (html->DocType != DT_HTML || html->DocTypeVersion <= 4.01f)
+ BUG_MSG("action attribute is required for <form>\n");
action = a_Url_dup(html->base_url);
}
content_type = DILLO_HTML_ENC_URLENCODED;