From 2e44d495769421423921bfcb06ebfc53f8370dd3 Mon Sep 17 00:00:00 2001 From: Ken Powers Date: Fri, 25 Oct 2024 14:34:35 -0400 Subject: Add web component elements and slot attribute (#235) The slot attribute is a standard attribute for use with web components: https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_templates_and_slots--- html/elements_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'html/elements_test.go') diff --git a/html/elements_test.go b/html/elements_test.go index 0b9dd02..5fe6268 100644 --- a/html/elements_test.go +++ b/html/elements_test.go @@ -103,6 +103,7 @@ func TestSimpleElements(t *testing.T) { {Name: "script", Func: Script}, {Name: "section", Func: Section}, {Name: "select", Func: Select}, + {Name: "slot", Func: SlotEl}, {Name: "small", Func: Small}, {Name: "span", Func: Span}, {Name: "strong", Func: Strong}, @@ -114,6 +115,7 @@ func TestSimpleElements(t *testing.T) { {Name: "table", Func: Table}, {Name: "tbody", Func: TBody}, {Name: "td", Func: Td}, + {Name: "template", Func: Template}, {Name: "textarea", Func: Textarea}, {Name: "tfoot", Func: TFoot}, {Name: "th", Func: Th}, -- cgit 1.4.1