diff options
author | Ambrose Li <ambrose.li@gmail.com> | 2020-08-29 08:26:12 +0000 |
---|---|---|
committer | Ambrose Li <ambrose.li@gmail.com> | 2020-08-29 08:26:12 +0000 |
commit | 4d8ba3fe2178027ef8d1f3a93c1948dd33181832 (patch) | |
tree | c8777b47182b89c01d4b477547dd98fd5531f496 | |
parent | Update ChangeLog (diff) | |
download | w3m-4d8ba3fe2178027ef8d1f3a93c1948dd33181832.tar.gz w3m-4d8ba3fe2178027ef8d1f3a93c1948dd33181832.zip |
wip from about a week ago. Need to stash these away for now to check the q branch
Diffstat (limited to '')
-rw-r--r-- | file.c | 1 | ||||
-rw-r--r-- | html.c | 4 | ||||
-rw-r--r-- | html.h | 2 | ||||
-rw-r--r-- | tagtable.tab | 2 |
4 files changed, 7 insertions, 2 deletions
@@ -4772,6 +4772,7 @@ HTMLtagproc1(struct parsed_tag *tag, struct html_feed_environ *h_env) } flushline(h_env, obuf, envs[h_env->envc].indent, 0, h_env->limit); return 0; + case HTML_SECTION: case HTML_HR: close_anchor(h_env, obuf); tmp = process_hr(tag, h_env->limit, envs[h_env->envc].indent); @@ -270,9 +270,9 @@ TagInfo TagMAP[MAX_HTMLTAG] = { {"/figure", NULL, 0, TFLG_END}, /* 142 HTML_N_FIGURE */ {"figcaption", ALST_P, MAXA_P, 0}, /* 143 HTML_FIGCAPTION */ {"/figcaption", NULL, 0, TFLG_END}, /* 144 HTML_N_FIGCAPTION */ + {"section", ALST_NOP, MAXA_NOP, 0}, /* 145 HTML_SECTION */ + {"/section", NULL, 0, TFLG_END}, /* 146 HTML_N_SECTION */ - {NULL, NULL, 0, 0}, /* 145 Undefined */ - {NULL, NULL, 0, 0}, /* 146 Undefined */ {NULL, NULL, 0, 0}, /* 147 Undefined */ {NULL, NULL, 0, 0}, /* 148 Undefined */ {NULL, NULL, 0, 0}, /* 149 Undefined */ @@ -235,6 +235,8 @@ typedef struct { #define HTML_N_FIGURE 142 #define HTML_FIGCAPTION 143 #define HTML_N_FIGCAPTION 144 +#define HTML_SECTION 145 +#define HTML_N_SECTION 146 /* pseudo tag */ #define HTML_SELECT_INT 160 diff --git a/tagtable.tab b/tagtable.tab index f731e09..cc94942 100644 --- a/tagtable.tab +++ b/tagtable.tab @@ -201,6 +201,8 @@ internal HTML_INTERNAL select_int HTML_SELECT_INT /select_int HTML_N_SELECT_INT option_int HTML_OPTION_INT +section HTML_SECTION +/section HTML_N_SECTION textarea_int HTML_TEXTAREA_INT /textarea_int HTML_N_TEXTAREA_INT pre_plain HTML_PRE_PLAIN |