diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-12-27 18:01:52 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-12-27 18:01:52 +0000 |
commit | 0fb25226f1c253e6dd1680f598c6b8c6a5306ec4 (patch) | |
tree | 1fbe2e593bbddffe501c7fab79e01b93af43aed6 /file.c | |
parent | [w3m-dev 02769] <form>..</form> as block element (diff) | |
download | w3m-0fb25226f1c253e6dd1680f598c6b8c6a5306ec4.tar.gz w3m-0fb25226f1c253e6dd1680f598c6b8c6a5306ec4.zip |
[w3m-dev 02770] form element outside <form>..</form>
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r-- | file.c | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.38 2001/12/27 17:56:03 ukai Exp $ */ +/* $Id: file.c,v 1.39 2001/12/27 18:01:52 ukai Exp $ */ #include "fm.h" #include <sys/types.h> #include "myctype.h" @@ -2406,6 +2406,11 @@ process_input(struct parsed_tag *tag) char *qq = ""; int qlen = 0; + if (cur_form_id < 0) { + char *s = "<form_int method=internal action=none>"; + process_form(parse_tag(&s, TRUE)); + } + p = "text"; parsedtag_get_value(tag, ATTR_TYPE, &p); q = NULL; @@ -2578,6 +2583,11 @@ process_select(struct parsed_tag *tag) { char *p; + if (cur_form_id < 0) { + char *s = "<form_int method=internal action=none>"; + process_form(parse_tag(&s, TRUE)); + } + p = ""; parsedtag_get_value(tag, ATTR_NAME, &p); cur_select = Strnew_charp(p); @@ -2742,6 +2752,11 @@ process_textarea(struct parsed_tag *tag, int width) { char *p; + if (cur_form_id < 0) { + char *s = "<form_int method=internal action=none>"; + process_form(parse_tag(&s, TRUE)); + } + p = ""; parsedtag_get_value(tag, ATTR_NAME, &p); cur_textarea = Strnew_charp(p); |