Support the button element as defined in HTML 4.01

Patch from upstream, [w3m-dev 04411] on 2010-09-17, to support the
button element.  It is discussed upstream and incomplete, but enough
to login Launchpad.
This commit is contained in:
Tatsuya Kinoshita
2011-06-19 20:40:17 +09:00
parent 5397d09e58
commit 6a032f360b
7 changed files with 204 additions and 33 deletions

9
fm.h
View File

@@ -562,6 +562,13 @@ typedef struct _DownloadList {
#define INIT_BUFFER_WIDTH ((_INIT_BUFFER_WIDTH > 0) ? _INIT_BUFFER_WIDTH : 0)
#define FOLD_BUFFER_WIDTH (FoldLine ? (INIT_BUFFER_WIDTH + 1) : -1)
struct input_alt_attr {
int hseq;
int fid;
int in;
Str type, name, value;
};
typedef struct {
int pos;
int len;
@@ -569,6 +576,7 @@ typedef struct {
long flag;
Anchor anchor;
Str img_alt;
struct input_alt_attr input_alt;
char fontstat[FONTSTAT_SIZE];
short nobr_level;
Lineprop prev_ctype;
@@ -591,6 +599,7 @@ struct readbuffer {
short nobr_level;
Anchor anchor;
Str img_alt;
struct input_alt_attr input_alt;
char fontstat[FONTSTAT_SIZE];
char fontstat_stack[FONT_STACK_SIZE][FONTSTAT_SIZE];
int fontstat_sp;