diff options
-rw-r--r-- | html/attributes.go | 4 | ||||
-rw-r--r-- | html/attributes_test.go | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/html/attributes.go b/html/attributes.go index fb2748b..e9a0b6d 100644 --- a/html/attributes.go +++ b/html/attributes.go @@ -277,6 +277,10 @@ func RowSpan(v string) g.Node { return g.Attr("rowspan", v) } +func Scope(v string) g.Node { + return g.Attr("scope", v) +} + func Src(v string) g.Node { return g.Attr("src", v) } diff --git a/html/attributes_test.go b/html/attributes_test.go index 88185b1..6a01e03 100644 --- a/html/attributes_test.go +++ b/html/attributes_test.go @@ -93,6 +93,7 @@ func TestSimpleAttributes(t *testing.T) { {Name: "role", Func: Role}, {Name: "rows", Func: Rows}, {Name: "rowspan", Func: RowSpan}, + {Name: "scope", Func: Scope}, {Name: "slot", Func: SlotAttr}, {Name: "src", Func: Src}, {Name: "srcset", Func: SrcSet}, |