From d2d000c4d0bd303a32edcd998804fcc5a820f786 Mon Sep 17 00:00:00 2001 From: walley Date: Tue, 6 Jun 2023 20:21:58 +0200 Subject: Add support for thead, tbody and tfoot --- src/html.cc | 6 +++--- src/table.cc | 25 +++++++++++++++++++++++++ src/table.hh | 4 ++++ 3 files changed, 32 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/html.cc b/src/html.cc index b9eb1727..2d29c41d 100644 --- a/src/html.cc +++ b/src/html.cc @@ -3533,13 +3533,13 @@ static const TagInfo Tags[] = { {"sub", B8(01011),'R', Html_tag_open_default, NULL, NULL}, {"sup", B8(01011),'R', Html_tag_open_default, NULL, NULL}, {"table", B8(01100),'R', Html_tag_open_table, Html_tag_content_table, NULL}, - /* tbody */ + {"tbody", B8(01010),'O', Html_tag_open_tbody, Html_tag_content_tbody, NULL}, {"td", B8(01110),'O', Html_tag_open_td, Html_tag_content_td, NULL}, {"textarea", B8(01011),'R', Html_tag_open_textarea, Html_tag_content_textarea, Html_tag_close_textarea}, - /* tfoot */ + {"tfoot", B8(01010),'O', Html_tag_open_tfoot, NULL, NULL}, {"th", B8(01110),'O', Html_tag_open_th, Html_tag_content_th, NULL}, - /* thead */ + {"thead", B8(01010),'O', Html_tag_open_thead, NULL, NULL}, {"title", B8(10011),'R', Html_tag_open_title, NULL, Html_tag_close_title}, {"tr", B8(01100),'O', Html_tag_open_tr, Html_tag_content_tr, NULL}, {"tt", B8(01011),'R', Html_tag_open_default, NULL, NULL}, diff --git a/src/table.cc b/src/table.cc index 188becbc..859b1063 100644 --- a/src/table.cc +++ b/src/table.cc @@ -244,6 +244,31 @@ void Html_tag_content_td(DilloHtml *html, const char *tag, int tagsize) Html_tag_content_table_cell (html, tag, tagsize); } +/* + * + */ +void Html_tag_open_tbody(DilloHtml *html, const char *tag, int tagsize) +{ +} + +void Html_tag_content_tbody(DilloHtml *html, const char *tag, int tagsize) +{ +} + +/* + * + */ +void Html_tag_open_tfoot(DilloHtml *html, const char *tag, int tagsize) +{ +} + +/* + * + */ +void Html_tag_open_thead(DilloHtml *html, const char *tag, int tagsize) +{ +} + /* * */ diff --git a/src/table.hh b/src/table.hh index 5417f681..25b7fdb3 100644 --- a/src/table.hh +++ b/src/table.hh @@ -17,6 +17,10 @@ void Html_tag_open_tr(DilloHtml *html, const char *tag, int tagsize); void Html_tag_content_tr(DilloHtml *html, const char *tag, int tagsize); void Html_tag_open_td(DilloHtml *html, const char *tag, int tagsize); void Html_tag_content_td(DilloHtml *html, const char *tag, int tagsize); +void Html_tag_open_tbody(DilloHtml *html, const char *tag, int tagsize); +void Html_tag_content_tbody(DilloHtml *html, const char *tag, int tagsize); +void Html_tag_open_tfoot(DilloHtml *html, const char *tag, int tagsize); +void Html_tag_open_thead(DilloHtml *html, const char *tag, int tagsize); void Html_tag_open_th(DilloHtml *html, const char *tag, int tagsize); void Html_tag_content_th(DilloHtml *html, const char *tag, int tagsize); -- cgit v1.2.3