File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,10 @@ func Lang(v string) g.Node {
126
126
return g .Attr ("lang" , v )
127
127
}
128
128
129
+ func Loading (v string ) g.Node {
130
+ return g .Attr ("loading" , v )
131
+ }
132
+
129
133
func Max (v string ) g.Node {
130
134
return g .Attr ("max" , v )
131
135
}
@@ -182,6 +186,10 @@ func Src(v string) g.Node {
182
186
return g .Attr ("src" , v )
183
187
}
184
188
189
+ func SrcSet (v string ) g.Node {
190
+ return g .Attr ("srcset" , v )
191
+ }
192
+
185
193
func StyleAttr (v string ) g.Node {
186
194
return g .Attr ("style" , v )
187
195
}
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ func TestSimpleAttributes(t *testing.T) {
51
51
"href" : Href ,
52
52
"id" : ID ,
53
53
"lang" : Lang ,
54
+ "loading" : Loading ,
54
55
"max" : Max ,
55
56
"maxlength" : MaxLength ,
56
57
"method" : Method ,
@@ -65,6 +66,7 @@ func TestSimpleAttributes(t *testing.T) {
65
66
"role" : Role ,
66
67
"rows" : Rows ,
67
68
"src" : Src ,
69
+ "srcset" : SrcSet ,
68
70
"style" : StyleAttr ,
69
71
"tabindex" : TabIndex ,
70
72
"target" : Target ,
You can’t perform that action at this time.
0 commit comments