diff options
author | Sebastian Geerken <devnull@localhost> | 2013-10-14 20:25:21 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2013-10-14 20:25:21 +0200 |
commit | a86189a5307f05974429277414909f14888669d5 (patch) | |
tree | 8a2f963b13adf2d56c2a506f3458f852308af9c1 /src/form.cc | |
parent | bd6a97f011cd71bcd679b7fba09fa60f9fb2e0a8 (diff) | |
parent | 8de011d8d7357509c487b3de5e052dfc52730b2b (diff) |
Merge with main repo.
Diffstat (limited to 'src/form.cc')
-rw-r--r-- | src/form.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/form.cc b/src/form.cc index af25bcb9..a91e170b 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; |