all repos — gomponents @ 2e44d495769421423921bfcb06ebfc53f8370dd3

HTML components in pure Go

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

Ken Powers
commit

2e44d495769421423921bfcb06ebfc53f8370dd3

parent

87bb2f37cb56ea53aafb06d5e264935a49e65bd6

1 file changed, 2 insertions(+), 0 deletions(-)

changed files
M html/elements_test.gohtml/elements_test.go
@@ -103,6 +103,7 @@ {Name: "samp", Func: Samp},
{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 @@ {Name: "svg", Func: SVG},
{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},