about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2025-03-19 22:28:44 +0100
committerAlan Pearce2025-03-19 22:28:44 +0100
commitdce03353aa6f9b7254cb6279ff3bf5d0c7564ff4 (patch)
treeb81b503e43fe81d771f39a7b64c867ecdc1af664
parent3a9a1fd26540ddd0299771a729740cdd88239dde (diff)
downloadgomponents-1.3.0.tar.lz
gomponents-1.3.0.tar.zst
gomponents-1.3.0.zip
add helper for <search> element HEAD v1.3.0 main
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/search
-rw-r--r--html/elements.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/html/elements.go b/html/elements.go
index ad3f19f..9afd7ea 100644
--- a/html/elements.go
+++ b/html/elements.go
@@ -416,6 +416,10 @@ func S(children ...g.Node) g.Node {
 	return g.El("s", g.Group(children))
 }
 
+func Search(children ...g.Node) g.Node {
+	return g.El("search", g.Group(children))
+}
+
 func Samp(children ...g.Node) g.Node {
 	return g.El("samp", g.Group(children))
 }