From f059451d808b336bb44e47794cf566e34d6acd10 Mon Sep 17 00:00:00 2001 From: corvid Date: Tue, 10 Sep 2013 19:43:27 +0000 Subject: html5, action not required for FORM --- src/form.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/form.cc') 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
\n"); + if (html->DocType != DT_HTML || html->DocTypeVersion <= 4.01f) + BUG_MSG("action attribute is required for \n"); action = a_Url_dup(html->base_url); } content_type = DILLO_HTML_ENC_URLENCODED; -- cgit v1.2.3