@@ -19,8 +19,8 @@ func Address(children ...HTMLComponent) (r *HTMLTagBuilder) {
19
19
// Not support
20
20
21
21
// "area": HTMLAreaElement;
22
- func Area (children ... HTMLComponent ) (r * HTMLTagBuilder ) {
23
- return Tag ("area" ).Children ( children ... )
22
+ func Area () (r * HTMLTagBuilder ) {
23
+ return Tag ("area" ).OmitEndTag ( )
24
24
}
25
25
26
26
// "article": HTMLElement;
@@ -44,8 +44,8 @@ func B(text string) (r *HTMLTagBuilder) {
44
44
}
45
45
46
46
// "base": HTMLBaseElement;
47
- func Base (children ... HTMLComponent ) (r * HTMLTagBuilder ) {
48
- return Tag ("base" ).Children ( children ... )
47
+ func Base () (r * HTMLTagBuilder ) {
48
+ return Tag ("base" ).OmitEndTag ( )
49
49
}
50
50
51
51
// "basefont": HTMLBaseFontElement;
@@ -102,8 +102,8 @@ func Code(text string) (r *HTMLTagBuilder) {
102
102
}
103
103
104
104
// "col": HTMLTableColElement;
105
- func Col (children ... HTMLComponent ) (r * HTMLTagBuilder ) {
106
- return Tag ("col" ).Children ( children ... )
105
+ func Col () (r * HTMLTagBuilder ) {
106
+ return Tag ("col" ).OmitEndTag ( )
107
107
}
108
108
109
109
// "colgroup": HTMLTableColElement;
@@ -171,8 +171,8 @@ func Em(text string) (r *HTMLTagBuilder) {
171
171
}
172
172
173
173
// "embed": HTMLEmbedElement;
174
- func Embed (children ... HTMLComponent ) (r * HTMLTagBuilder ) {
175
- return Tag ("embed" ).Children ( children ... )
174
+ func Embed () (r * HTMLTagBuilder ) {
175
+ return Tag ("embed" ).OmitEndTag ( )
176
176
}
177
177
178
178
// "fieldset": HTMLFieldSetElement;
@@ -257,7 +257,7 @@ func Hgroup(children ...HTMLComponent) (r *HTMLTagBuilder) {
257
257
258
258
// "hr": HTMLHRElement;
259
259
func Hr () (r * HTMLTagBuilder ) {
260
- return Tag ("hr" )
260
+ return Tag ("hr" ). OmitEndTag ()
261
261
}
262
262
263
263
// "html": HTMLHtmlElement;
@@ -280,13 +280,13 @@ func Iframe(children ...HTMLComponent) (r *HTMLTagBuilder) {
280
280
281
281
// "img": HTMLImageElement;
282
282
func Img (src string ) (r * HTMLTagBuilder ) {
283
- return Tag ("img" ).Attr ("src" , src )
283
+ return Tag ("img" ).OmitEndTag (). Attr ("src" , src )
284
284
}
285
285
286
286
// "input": HTMLInputElement;
287
287
288
288
func Input (name string ) (r * HTMLTagBuilder ) {
289
- return Tag ("input" ).Attr ("name" , name )
289
+ return Tag ("input" ).OmitEndTag (). Attr ("name" , name )
290
290
}
291
291
292
292
// "ins": HTMLModElement;
@@ -316,7 +316,7 @@ func Li(children ...HTMLComponent) (r *HTMLTagBuilder) {
316
316
317
317
// "link": HTMLLinkElement;
318
318
func Link (href string ) (r * HTMLTagBuilder ) {
319
- return Tag ("link" ).Attr ("href" , href )
319
+ return Tag ("link" ).OmitEndTag (). Attr ("href" , href )
320
320
}
321
321
322
322
// "main": HTMLElement;
@@ -345,7 +345,7 @@ func Menu(children ...HTMLComponent) (r *HTMLTagBuilder) {
345
345
// "meta": HTMLMetaElement;
346
346
347
347
func Meta () (r * HTMLTagBuilder ) {
348
- return Tag ("meta" )
348
+ return Tag ("meta" ). OmitEndTag ()
349
349
}
350
350
351
351
// "meter": HTMLMeterElement;
@@ -395,7 +395,7 @@ func P(children ...HTMLComponent) (r *HTMLTagBuilder) {
395
395
396
396
// "param": HTMLParamElement;
397
397
func Param (name string ) (r * HTMLTagBuilder ) {
398
- return Tag ("param" ).Attr ("name" , name )
398
+ return Tag ("param" ).OmitEndTag (). Attr ("name" , name )
399
399
}
400
400
401
401
// "picture": HTMLPictureElement;
@@ -473,7 +473,7 @@ func Small(text string) (r *HTMLTagBuilder) {
473
473
474
474
// "source": HTMLSourceElement;
475
475
func Source (src string ) (r * HTMLTagBuilder ) {
476
- return Tag ("source" ).Attr ("src" , src )
476
+ return Tag ("source" ).OmitEndTag (). Attr ("src" , src )
477
477
}
478
478
479
479
// "span": HTMLSpanElement;
@@ -565,7 +565,7 @@ func Tr(children ...HTMLComponent) (r *HTMLTagBuilder) {
565
565
566
566
// "track": HTMLTrackElement;
567
567
func Track (src string ) (r * HTMLTagBuilder ) {
568
- return Tag ("track" ).Attr ("src" , src )
568
+ return Tag ("track" ).OmitEndTag (). Attr ("src" , src )
569
569
}
570
570
571
571
// "u": HTMLElement;
@@ -589,6 +589,6 @@ func Video(children ...HTMLComponent) (r *HTMLTagBuilder) {
589
589
}
590
590
591
591
// "wbr": HTMLElement;
592
- func Wbr (text string ) (r * HTMLTagBuilder ) {
593
- return Tag ("wbr" ).Text ( text )
592
+ func Wbr () (r * HTMLTagBuilder ) {
593
+ return Tag ("wbr" ).OmitEndTag ( )
594
594
}
0 commit comments