diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-05 12:31:27 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-05 12:31:27 +0000 |
commit | 735d0c1d5743f4f1610b06b43ec20e4fb0c45441 (patch) | |
tree | 568240716cad82cabe64222c47508a3396dee2d5 /html.c | |
parent | [w3m-dev 02990] (diff) | |
download | w3m-735d0c1d5743f4f1610b06b43ec20e4fb0c45441.tar.gz w3m-735d0c1d5743f4f1610b06b43ec20e4fb0c45441.zip |
[w3m-dev 02991] form support in w3m -halfdump foo.html|w3m -halfload
* fm.h (DUMP_HALFEXTRA): deleted
* proto.h (process_select): return Str
* file.c (process_img): process_form() fix
* file.c (process_input): process_form() fix
* file.c (process_select): return Str
process_form() fix
* file.c (process_textarea): process_form() fix
* file.c (process_form): support -halfdump
* file.c (HTMLtagproc1): delete case HTML_FORM_INT, HTML_N_FORM_INT
process_{form,select,textarea}() fix
* file.c (HTMLlineproc2body): support -halfload
HTML_INTERNAL, HTML_N_INTERNAL,
HTML_FORM_INT, HTML_FORM_INT,
HTML_TEXTAREA_INT, HTML_N_TEXTAREA_INT,
HTML_SELECT_INT, HTML_N_SELECT_INT,
HTML_OPTION_INT, HTML_TITLE_ALT
* file.c (print_internal_information): fix -halfdump
* file.c (loadHTMLstream): no DUMP_HALFEXTRA
* html.h: add HTML_INTERNAL, HTML_N_INTERNAL,
HTML_SELECT_INT, HTML_N_SELECT_INT,
HTML_OPTION_INT, HTML_TEXTAREA_INT, HTML_N_TEXTAREA_INT
* html.c (ALST_TEXTAREA_INT): added
* html.c (ALST_SELECT_INT): added
* html.c: add <internal>, </internal>, <select_int>, </select_int>
<option_int>, <textarea_int>, </textarea_int>
* main.c (MAIN): delete -halfdump_extra
dont output <pre> by -halfdump
* table.c (feed_table_tag): process_{form,select}() fix
add case HTML_INTERNAL, HTML_N_INTERNAL,
HTML_SELECT_INT, HTML_N_SELECT_INT,
HTML_OPTION_INT, HTML_TEXTAREA_INT, HTML_N_TEXTAREA_INT,
* tagtable.tab: add internal, /internal, select_int, /select_int
option_int, textarea_int, /textarea_int
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r-- | html.c | 20 |
1 files changed, 12 insertions, 8 deletions
@@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.8 2002/01/31 17:54:51 ukai Exp $ */ +/* $Id: html.c,v 1.9 2002/02/05 12:31:27 ukai Exp $ */ #include "html.h" /* Define HTML Tag Infomation Table */ @@ -84,6 +84,10 @@ unsigned char ALST_APPLET[] = { ATTR_ARCHIVE, ATTR_CORE }; unsigned char ALST_EMBED[] = { ATTR_SRC, ATTR_CORE }; #define MAX_EMBED MAXA_CORE + 1 +unsigned char ALST_TEXTAREA_INT[] = { ATTR_TEXTAREANUMBER }; +#define MAXA_TEXTAREA_INT 1 +unsigned char ALST_SELECT_INT[] = { ATTR_SELECTNUMBER }; +#define MAXA_SELECT_INT 1 unsigned char ALST_TABLE_ALT[] = { ATTR_TID }; #define MAXA_TABLE_ALT 1 unsigned char ALST_RULE[] = { ATTR_TYPE }; @@ -213,15 +217,15 @@ TagInfo TagMAP[MAX_HTMLTAG] = { {NULL, NULL, 0, 0}, /* 103 Undefined */ {NULL, NULL, 0, 0}, /* 104 Undefined */ {NULL, NULL, 0, 0}, /* 105 Undefined */ - {NULL, NULL, 0, 0}, /* 106 Undefined */ - {NULL, NULL, 0, 0}, /* 107 Undefined */ - {NULL, NULL, 0, 0}, /* 108 Undefined */ - {NULL, NULL, 0, 0}, /* 109 Undefined */ - {NULL, NULL, 0, 0}, /* 110 Undefined */ - {NULL, NULL, 0, 0}, /* 111 Undefined */ - {NULL, NULL, 0, 0}, /* 112 Undefined */ /* pseudo tag */ + {"internal", NULL, 0, TFLG_INT}, /* 106 HTML_INTERNAL */ + {"/internal", NULL, 0, TFLG_INT | TFLG_END}, /* 107 HTML_N_INTERNAL */ + {"select_int", ALST_SELECT_INT, MAXA_SELECT_INT, TFLG_INT}, /* 108 HTML_SELECT_INT */ + {"/select_int", NULL, 0, TFLG_INT | TFLG_END}, /* 109 HTML_N_SELECT_INT */ + {"option_int", ALST_OPTION, MAXA_OPTION, TFLG_INT}, /* 110 HTML_OPTION_INT */ + {"textarea_int", ALST_TEXTAREA_INT, MAXA_TEXTAREA_INT, TFLG_INT}, /* 111 HTML_TEXTAREA_INT */ + {"/textarea_int", NULL, 0, TFLG_INT | TFLG_END}, /* 112 HTML_N_TEXTAREA_INT */ {"table_alt", ALST_TABLE_ALT, MAXA_TABLE_ALT, TFLG_INT}, /* 113 HTML_TABLE_ALT */ {"rule", ALST_RULE, MAXA_RULE, TFLG_INT}, /* 114 HTML_RULE */ {"/rule", NULL, 0, TFLG_INT | TFLG_END}, /* 115 HTML_N_RULE */ |