From 61f6c2a299d8e8985ec95e52cb2ac18d07640f4b Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 22 Jan 2023 13:32:40 +0100 Subject: [PATCH] [html] Added section element. Refs #207 --- src/document/html/parser/general.c | 6 ++++++ src/document/html/parser/general.h | 1 + src/document/html/parser/parse.c | 1 + 3 files changed, 8 insertions(+) diff --git a/src/document/html/parser/general.c b/src/document/html/parser/general.c index 26c1fc41..a1e38c91 100644 --- a/src/document/html/parser/general.c +++ b/src/document/html/parser/general.c @@ -42,6 +42,12 @@ #include "document/html/internal.h" +void +html_section(struct html_context *html_context, char *a, + char *xxx3, char *xxx4, char **xxx5) +{ +} + void html_span(struct html_context *html_context, char *a, char *xxx3, char *xxx4, char **xxx5) diff --git a/src/document/html/parser/general.h b/src/document/html/parser/general.h index 9df48691..5d746bcc 100644 --- a/src/document/html/parser/general.h +++ b/src/document/html/parser/general.h @@ -45,6 +45,7 @@ element_handler_T html_pre; element_handler_T html_quote; element_handler_T html_quote_close; element_handler_T html_script; +element_handler_T html_section; element_handler_T html_span; element_handler_T html_style; element_handler_T html_style_close; diff --git a/src/document/html/parser/parse.c b/src/document/html/parser/parse.c index 70fcc679..3008695a 100644 --- a/src/document/html/parser/parse.c +++ b/src/document/html/parser/parse.c @@ -507,6 +507,7 @@ static struct element_info elements[] = { {"Q", html_quote, html_quote_close, 0, ET_NESTABLE }, {"S", html_underline, NULL, 0, ET_NESTABLE }, {"SCRIPT", html_script, NULL, 0, ET_NESTABLE }, + {"SECTION", html_section, NULL, 0, ET_NESTABLE }, {"SELECT", html_select, NULL, 0, ET_NESTABLE }, {"SOURCE", html_source, NULL, 1, ET_NON_PAIRABLE}, {"SPAN", html_span, NULL, 0, ET_NESTABLE },