all repos — gomponents @ 070442d754a3124c82cc3e33a31e345f3b78dc29

HTML components in pure Go

Add "search" HTML element (#257) Hey there, Thanks for this project! Super cool idea and I've been exploring using it to replace the standard `html/template` package in one of my Go projects. One thing I noticed, however, is that the [search element](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/search) appears to be missing. This PR adds it (and updates the tests, as well). Please let me know if I've missed anything or if any changes should be made. Thanks again!

Andrew Dailey
commit

070442d754a3124c82cc3e33a31e345f3b78dc29

parent

161d7b5db3e9701e08fd2ceab85a27f1dcaeeffc

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

changed files
M html/elements.gohtml/elements.go
@@ -256,6 +256,10 @@ func Script(children ...g.Node) g.Node {
return g.El("script", children...) } +func Search(children ...g.Node) g.Node { + return g.El("search", children...) +} + func Section(children ...g.Node) g.Node { return g.El("section", children...) }