all repos — gomponents @ 91805813d15b1903a4c5bb540b59172c31c73622

HTML components in pure Go

Merge remote-tracking branch 'upstream/main'

Alan Pearce
commit

91805813d15b1903a4c5bb540b59172c31c73622

parent

84f293a92824fcf26f8335d4820245a8c209bd34

2 files changed, 5 insertions(+), 0 deletions(-)

changed files
M html/elements.gohtml/elements.go
@@ -230,6 +230,10 @@ func OptGroup(children ...g.Node) g.Node {
return g.El("optgroup", children...) } +func Output(children ...g.Node) g.Node { + return g.El("output", children...) +} + func Option(children ...g.Node) g.Node { return g.El("option", children...) }
M html/elements_test.gohtml/elements_test.go
@@ -94,6 +94,7 @@ {Name: "object", Func: Object},
{Name: "ol", Func: Ol}, {Name: "optgroup", Func: OptGroup}, {Name: "option", Func: Option}, + {Name: "output", Func: Output}, {Name: "p", Func: P}, {Name: "picture", Func: Picture}, {Name: "pre", Func: Pre},