diff options
author | corvid <corvid@lavabit.com> | 2011-10-20 00:13:55 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2011-10-20 00:13:55 +0000 |
commit | 145079ecc61912e5bf896a081d506aeea1039e06 (patch) | |
tree | 095cfd8d5f3eb132d19da66c9b5f27eb0ef304ef | |
parent | 7674a807649317af299415b2ee9edf434141ca58 (diff) |
add a text input when input type is not recognized
bug #1018 submitter requested behaviour a little more
friendly to html5, which sounds sensible as bits of
that infinite monstrosity start showing up more
often...
-rw-r--r-- | src/form.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/form.cc b/src/form.cc index f70bea8c..a69129b1 100644 --- a/src/form.cc +++ b/src/form.cc @@ -518,18 +518,16 @@ void Html_tag_open_input(DilloHtml *html, const char *tag, int tagsize) init_str = value; resource = factory->createLabelButtonResource(init_str); } - } else if (!dStrcasecmp(type, "text") || !*type) { + } else { /* Text input, which also is the default */ inp_type = DILLO_HTML_INPUT_TEXT; + if (*type && dStrcasecmp(type, "text")) + BUG_MSG("Unknown input type: \"%s\"\n", type); attrbuf = a_Html_get_attr(html, tag, tagsize, "size"); int size = Html_input_get_size(html, attrbuf); resource = factory->createEntryResource(size, false, NULL); init_str = value; - } else { - /* Unknown input type */ - BUG_MSG("Unknown input type: \"%s\"\n", type); } - if (resource) embed = new Embed (resource); |