From 866118c53a05b16dad150e9b5f6f690d419461ed Mon Sep 17 00:00:00 2001 From: Bruno Perles Date: Thu, 29 Oct 2020 12:33:02 +0100 Subject: [PATCH 1/2] Add tfoot html tag Related to: https://github.com/luckyframework/lucky/issues/1295 --- src/lucky/tags/base_tags.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lucky/tags/base_tags.cr b/src/lucky/tags/base_tags.cr index a2120325d..7b6ecb83a 100644 --- a/src/lucky/tags/base_tags.cr +++ b/src/lucky/tags/base_tags.cr @@ -1,6 +1,6 @@ module Lucky::BaseTags include Lucky::CheckTagContent - TAGS = %i(a abbr address article aside b bdi body button code details dialog div dd dl dt em fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header html i iframe label li main mark menuitem meter nav ol option pre progress rp rt ruby s script section small span strong summary table tbody td template textarea th thead time title tr u ul video wbr) + TAGS = %i(a abbr address article aside b bdi body button code details dialog div dd dl dt em fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header html i iframe label li main mark menuitem meter nav ol option pre progress rp rt ruby s script section small span strong summary table tbody td template textarea th thead tfoot time title tr u ul video wbr) RENAMED_TAGS = {"para": "p", "select_tag": "select"} EMPTY_TAGS = %i(img br hr input meta source) EMPTY_HTML_ATTRS = {} of String => String From 14526078da6228d721487fa591379c29313a40bc Mon Sep 17 00:00:00 2001 From: Bruno Perles Date: Thu, 29 Oct 2020 14:27:34 +0100 Subject: [PATCH 2/2] Move tfoot before th --- src/lucky/tags/base_tags.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lucky/tags/base_tags.cr b/src/lucky/tags/base_tags.cr index 7b6ecb83a..f898e4f1a 100644 --- a/src/lucky/tags/base_tags.cr +++ b/src/lucky/tags/base_tags.cr @@ -1,6 +1,6 @@ module Lucky::BaseTags include Lucky::CheckTagContent - TAGS = %i(a abbr address article aside b bdi body button code details dialog div dd dl dt em fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header html i iframe label li main mark menuitem meter nav ol option pre progress rp rt ruby s script section small span strong summary table tbody td template textarea th thead tfoot time title tr u ul video wbr) + TAGS = %i(a abbr address article aside b bdi body button code details dialog div dd dl dt em fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header html i iframe label li main mark menuitem meter nav ol option pre progress rp rt ruby s script section small span strong summary table tbody td template textarea tfoot th thead time title tr u ul video wbr) RENAMED_TAGS = {"para": "p", "select_tag": "select"} EMPTY_TAGS = %i(img br hr input meta source) EMPTY_HTML_ATTRS = {} of String => String