aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmbrose Li <ambrose.li@gmail.com>2020-08-29 08:26:12 +0000
committerAmbrose Li <ambrose.li@gmail.com>2020-08-29 08:26:12 +0000
commit4d8ba3fe2178027ef8d1f3a93c1948dd33181832 (patch)
treec8777b47182b89c01d4b477547dd98fd5531f496
parentUpdate ChangeLog (diff)
downloadw3m-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.c1
-rw-r--r--html.c4
-rw-r--r--html.h2
-rw-r--r--tagtable.tab2
4 files changed, 7 insertions, 2 deletions
diff --git a/file.c b/file.c
index c0fc044..2ad58ca 100644
--- a/file.c
+++ b/file.c
@@ -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);
diff --git a/html.c b/html.c
index 90cf66e..cb82306 100644
--- a/html.c
+++ b/html.c
@@ -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 */
diff --git a/html.h b/html.h
index 6da6f5f..6f157d7 100644
--- a/html.h
+++ b/html.h
@@ -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