diff options
author | walley <walley@walley.org> | 2023-06-06 20:21:58 +0200 |
---|---|---|
committer | rodarima <rodarima@gmail.com> | 2023-12-11 02:14:00 +0100 |
commit | d2d000c4d0bd303a32edcd998804fcc5a820f786 (patch) | |
tree | 4d1ba5e397da9d737024ea4607286e406481114e /src | |
parent | 9aec1973187a0ca0440d2a4e5246e1a2fbe7da50 (diff) |
Add support for thead, tbody and tfoot
Diffstat (limited to 'src')
-rw-r--r-- | src/html.cc | 6 | ||||
-rw-r--r-- | src/table.cc | 25 | ||||
-rw-r--r-- | src/table.hh | 4 |
3 files changed, 32 insertions, 3 deletions
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 @@ -245,6 +245,31 @@ void Html_tag_content_td(DilloHtml *html, const char *tag, int tagsize) } /* + * <tbody> + */ +void Html_tag_open_tbody(DilloHtml *html, const char *tag, int tagsize) +{ +} + +void Html_tag_content_tbody(DilloHtml *html, const char *tag, int tagsize) +{ +} + +/* + * <tfoot> + */ +void Html_tag_open_tfoot(DilloHtml *html, const char *tag, int tagsize) +{ +} + +/* + * <thead> + */ +void Html_tag_open_thead(DilloHtml *html, const char *tag, int tagsize) +{ +} + +/* * <TH> */ void Html_tag_open_th(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); |