Skip to content

Commit

Permalink
Merge branch 'main' into import-test
Browse files Browse the repository at this point in the history
  • Loading branch information
markuswustenberg authored Oct 11, 2024
2 parents 211e9a1 + 05d5660 commit 6c7b733
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ in the sidebar, also if you have not contributed code.

- Markus Wüstenberg, @markuswustenberg / @maragudk
- Hans Raaf, @oderwat
- Guy-Laurent Subri, @glsubri
4 changes: 4 additions & 0 deletions html/attributes.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ func Height(v string) g.Node {
return g.Attr("height", v)
}

func Hidden(v string) g.Node {
return g.Attr("hidden", v)
}

func Href(v string) g.Node {
return g.Attr("href", v)
}
Expand Down
1 change: 1 addition & 0 deletions html/attributes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ func TestSimpleAttributes(t *testing.T) {
{Name: "for", Func: For},
{Name: "form", Func: FormAttr},
{Name: "height", Func: Height},
{Name: "hidden", Func: Hidden},
{Name: "href", Func: Href},
{Name: "id", Func: ID},
{Name: "integrity", Func: Integrity},
Expand Down

0 comments on commit 6c7b733

Please sign in to comment.