mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
html_input(): re-order type tests a bit.
This commit is contained in:
parent
a5a731a77b
commit
7a443d0f73
@ -199,14 +199,14 @@ html_input(struct html_context *html_context, unsigned char *a,
|
|||||||
al = get_attr_val(a, "type", html_context->options);
|
al = get_attr_val(a, "type", html_context->options);
|
||||||
if (al) {
|
if (al) {
|
||||||
if (!strcasecmp(al, "text")) type = FC_TEXT;
|
if (!strcasecmp(al, "text")) type = FC_TEXT;
|
||||||
else if (!strcasecmp(al, "password")) type = FC_PASSWORD;
|
else if (!strcasecmp(al, "hidden")) type = FC_HIDDEN;
|
||||||
|
else if (!strcasecmp(al, "button")) type = FC_BUTTON;
|
||||||
else if (!strcasecmp(al, "checkbox")) type = FC_CHECKBOX;
|
else if (!strcasecmp(al, "checkbox")) type = FC_CHECKBOX;
|
||||||
else if (!strcasecmp(al, "radio")) type = FC_RADIO;
|
else if (!strcasecmp(al, "radio")) type = FC_RADIO;
|
||||||
|
else if (!strcasecmp(al, "password")) type = FC_PASSWORD;
|
||||||
else if (!strcasecmp(al, "submit")) type = FC_SUBMIT;
|
else if (!strcasecmp(al, "submit")) type = FC_SUBMIT;
|
||||||
else if (!strcasecmp(al, "reset")) type = FC_RESET;
|
else if (!strcasecmp(al, "reset")) type = FC_RESET;
|
||||||
else if (!strcasecmp(al, "button")) type = FC_BUTTON;
|
|
||||||
else if (!strcasecmp(al, "file")) type = FC_FILE;
|
else if (!strcasecmp(al, "file")) type = FC_FILE;
|
||||||
else if (!strcasecmp(al, "hidden")) type = FC_HIDDEN;
|
|
||||||
else if (!strcasecmp(al, "image")) type = FC_IMAGE;
|
else if (!strcasecmp(al, "image")) type = FC_IMAGE;
|
||||||
/* else unknown type, let it default to FC_TEXT. */
|
/* else unknown type, let it default to FC_TEXT. */
|
||||||
mem_free(al);
|
mem_free(al);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user