1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
use crate::{Node, Void};
use std::borrow::Cow;

/// Helper methods for generating HTML5 documents.
pub trait Html5 {
    /// Defines the document type
    fn doctype(&mut self);

    /// Defines a hyperlink
    fn a(&mut self) -> Node;

    /// Defines an abbreviation or an acronym
    fn abbr(&mut self) -> Node;

    /// Defines contact information for the author/owner of a document
    fn address(&mut self) -> Node;

    /// Defines an area inside an image map
    fn area(&mut self) -> Void;

    /// Defines an article
    fn article(&mut self) -> Node;

    /// Defines content aside from the page content
    fn aside(&mut self) -> Node;

    /// Defines embedded sound content
    fn audio(&mut self) -> Node;

    /// Defines bold text
    fn b(&mut self) -> Node;

    /// Specifies the base URL/target for all relative URLs in a document
    fn base(&mut self) -> Void;

    /// Isolates a part of text that might be formatted in a different direction from other text outside it
    fn bdi(&mut self) -> Node;

    /// Overrides the current text direction
    fn bdo(&mut self) -> Node;

    /// Defines a section that is quoted from another source
    fn blockquote(&mut self) -> Node;

    /// Defines the document's body
    fn body(&mut self) -> Node;

    /// Defines a single line break
    fn br(&mut self) -> Void;

    /// Defines a clickable button
    fn button(&mut self) -> Node;

    /// Used to draw graphics, on the fly, via scripting (usually JavaScript)
    fn canvas(&mut self) -> Node;

    /// Defines a table caption
    fn caption(&mut self) -> Node;

    /// Defines the title of a work
    fn cite(&mut self) -> Node;

    /// Defines a piece of computer code
    fn code(&mut self) -> Node;

    /// Specifies column properties for each column within a `<colgroup>` element
    fn col(&mut self) -> Void;

    /// Specifies a group of one or more columns in a table for formatting
    fn colgroup(&mut self) -> Node;

    /// Adds a machine-readable translation of a given content
    fn data(&mut self) -> Node;

    /// Specifies a list of pre-defined options for input controls
    fn datalist(&mut self) -> Node;

    /// Defines a description/value of a term in a description list
    fn dd(&mut self) -> Node;

    /// Defines text that has been deleted from a document
    fn del(&mut self) -> Node;

    /// Defines additional details that the user can view or hide
    fn details(&mut self) -> Node;

    /// Specifies a term that is going to be defined within the content
    fn dfn(&mut self) -> Node;

    /// Defines a dialog box or window
    fn dialog(&mut self) -> Node;

    /// Defines a section in a document
    fn div(&mut self) -> Node;

    /// Defines a description list
    fn dl(&mut self) -> Node;

    /// Defines a term/name in a description list
    fn dt(&mut self) -> Node;

    /// Defines emphasized text
    fn em(&mut self) -> Node;

    /// Defines a container for an external application
    fn embed(&mut self) -> Void;

    /// Groups related elements in a form
    fn fieldset(&mut self) -> Node;

    /// Defines a caption for a `<figure>` element
    fn figcaption(&mut self) -> Node;

    /// Specifies self-contained content
    fn figure(&mut self) -> Node;

    /// Defines a footer for a document or section
    fn footer(&mut self) -> Node;

    /// Defines an HTML form for user input
    fn form(&mut self) -> Node;

    /// Defines HTML headings
    fn h1(&mut self) -> Node;

    /// Defines HTML headings
    fn h2(&mut self) -> Node;

    /// Defines HTML headings
    fn h3(&mut self) -> Node;

    /// Defines HTML headings
    fn h4(&mut self) -> Node;

    /// Defines HTML headings
    fn h5(&mut self) -> Node;

    /// Defines HTML headings
    fn h6(&mut self) -> Node;

    /// Contains metadata/information for the document
    fn head(&mut self) -> Node;

    /// Defines a header for a document or section
    fn header(&mut self) -> Node;

    /// Defines a thematic change in the content
    fn hr(&mut self) -> Void;

    /// Defines the root of an HTML document
    fn html(&mut self) -> Node;

    /// Defines a part of text in an alternate voice or mood
    fn i(&mut self) -> Node;

    /// Defines an inline frame
    fn iframe(&mut self) -> Node;

    /// Defines an image
    fn img(&mut self) -> Void;

    /// Defines an input control
    fn input(&mut self) -> Void;

    /// Defines a text that has been inserted into a document
    fn ins(&mut self) -> Node;

    /// Defines keyboard input
    fn kbd(&mut self) -> Node;

    /// Defines a label for an `<input>` element
    fn label(&mut self) -> Node;

    /// Defines a caption for a `<fieldset>` element
    fn legend(&mut self) -> Node;

    /// Defines a list item
    fn li(&mut self) -> Node;

    /// Defines the relationship between a document and an external resource (most used to link to style sheets)
    fn link(&mut self) -> Void;

    /// Specifies the main content of a document
    fn main(&mut self) -> Node;

    /// Defines an image map
    fn map(&mut self) -> Node;

    /// Defines marked/highlighted text
    fn mark(&mut self) -> Node;

    /// Defines metadata about an HTML document
    fn meta(&mut self) -> Void;

    /// Defines a scalar measurement within a known range (a gauge)
    fn meter(&mut self) -> Node;

    /// Defines navigation links
    fn nav(&mut self) -> Node;

    /// Defines an alternate content for users that do not support client-side scripts
    fn noscript(&mut self) -> Node;

    /// Defines a container for an external application
    fn object(&mut self) -> Node;

    /// Defines an ordered list
    fn ol(&mut self) -> Node;

    /// Defines a group of related options in a drop-down list
    fn optgroup(&mut self) -> Node;

    /// Defines an option in a drop-down list
    fn option(&mut self) -> Node;

    /// Defines the result of a calculation
    fn output(&mut self) -> Node;

    /// Defines a paragraph
    fn p(&mut self) -> Node;

    /// Defines a parameter for an object
    fn param(&mut self) -> Void;

    /// Defines a container for multiple image resources
    fn picture(&mut self) -> Node;

    /// Defines preformatted text
    fn pre(&mut self) -> Node;

    /// Represents the progress of a task
    fn progress(&mut self) -> Node;

    /// Defines a short quotation
    fn q(&mut self) -> Node;

    /// Defines what to show in browsers that do not support ruby annotations
    fn rp(&mut self) -> Node;

    /// Defines an explanation/pronunciation of characters (for East Asian typography)
    fn rt(&mut self) -> Node;

    /// Defines a ruby annotation (for East Asian typography)
    fn ruby(&mut self) -> Node;

    /// Defines text that is no longer correct
    fn s(&mut self) -> Node;

    /// Defines sample output from a computer program
    fn samp(&mut self) -> Node;

    /// Defines a client-side script
    fn script(&mut self) -> Node;

    /// Defines a section in a document
    fn section(&mut self) -> Node;

    /// Defines a drop-down list
    fn select(&mut self) -> Node;

    /// Defines smaller text
    fn small(&mut self) -> Node;

    /// Defines multiple media resources for media elements (`<video>` and `<audio>`)
    fn source(&mut self) -> Void;

    /// Defines a section in a document
    fn span(&mut self) -> Node;

    /// Defines important text
    fn strong(&mut self) -> Node;

    /// Defines style information for a document
    fn style(&mut self) -> Node;

    /// Defines subscripted text
    fn sub(&mut self) -> Node;

    /// Defines a visible heading for a `<details>` element
    fn summary(&mut self) -> Node;

    /// Defines superscripted text
    fn sup(&mut self) -> Node;

    /// Defines a container for SVG graphics
    fn svg(&mut self) -> Node;

    /// Defines a table
    fn table(&mut self) -> Node;

    /// Groups the body content in a table
    fn tbody(&mut self) -> Node;

    /// Defines a cell in a table
    fn td(&mut self) -> Node;

    /// Defines a container for content that should be hidden when the page loads
    fn template(&mut self) -> Node;

    /// Defines a multiline input control (text area)
    fn textarea(&mut self) -> Node;

    /// Groups the footer content in a table
    fn tfoot(&mut self) -> Node;

    /// Defines a header cell in a table
    fn th(&mut self) -> Node;

    /// Groups the header content in a table
    fn thead(&mut self) -> Node;

    /// Defines a specific time (or datetime)
    fn time(&mut self) -> Node;

    /// Defines a title for the document
    fn title(&mut self) -> Node;

    /// Defines a row in a table
    fn tr(&mut self) -> Node;

    /// Defines text tracks for media elements (`<video>` and `<audio>`)
    fn track(&mut self) -> Void;

    /// Defines some text that is unarticulated and styled differently from normal text
    fn u(&mut self) -> Node;

    /// Defines an unordered list
    fn ul(&mut self) -> Node;

    /// Defines a variable
    fn var(&mut self) -> Node;

    /// Defines embedded video content
    fn video(&mut self) -> Node;

    /// Defines a possible line-break
    fn wbr(&mut self) -> Void;
}

impl<'a> Html5 for Node<'a> {
    /// Defines the document type
    fn doctype(&mut self) {
        self.void_child(Cow::Borrowed("!DOCTYPE")).attr("html");
    }

    /// Defines a hyperlink
    fn a(&mut self) -> Node {
        self.child(Cow::Borrowed("a"))
    }

    /// Defines an abbreviation or an acronym
    fn abbr(&mut self) -> Node {
        self.child(Cow::Borrowed("abbr"))
    }

    /// Defines contact information for the author/owner of a document
    fn address(&mut self) -> Node {
        self.child(Cow::Borrowed("address"))
    }

    /// Defines an area inside an image map
    fn area(&mut self) -> Void {
        self.void_child(Cow::Borrowed("area"))
    }

    /// Defines an article
    fn article(&mut self) -> Node {
        self.child(Cow::Borrowed("article"))
    }

    /// Defines content aside from the page content
    fn aside(&mut self) -> Node {
        self.child(Cow::Borrowed("aside"))
    }

    /// Defines embedded sound content
    fn audio(&mut self) -> Node {
        self.child(Cow::Borrowed("audio"))
    }

    /// Defines bold text
    fn b(&mut self) -> Node {
        self.child(Cow::Borrowed("b"))
    }

    /// Specifies the base URL/target for all relative URLs in a document
    fn base(&mut self) -> Void {
        self.void_child(Cow::Borrowed("base"))
    }

    /// Isolates a part of text that might be formatted in a different direction from other text outside it
    fn bdi(&mut self) -> Node {
        self.child(Cow::Borrowed("bdi"))
    }

    /// Overrides the current text direction
    fn bdo(&mut self) -> Node {
        self.child(Cow::Borrowed("bdo"))
    }

    /// Defines a section that is quoted from another source
    fn blockquote(&mut self) -> Node {
        self.child(Cow::Borrowed("blockquote"))
    }

    /// Defines the document's body
    fn body(&mut self) -> Node {
        self.child(Cow::Borrowed("body"))
    }

    /// Defines a single line break
    fn br(&mut self) -> Void {
        self.void_child(Cow::Borrowed("br"))
    }

    /// Defines a clickable button
    fn button(&mut self) -> Node {
        self.child(Cow::Borrowed("button"))
    }

    /// Used to draw graphics, on the fly, via scripting (usually JavaScript)
    fn canvas(&mut self) -> Node {
        self.child(Cow::Borrowed("canvas"))
    }

    /// Defines a table caption
    fn caption(&mut self) -> Node {
        self.child(Cow::Borrowed("caption"))
    }

    /// Defines the title of a work
    fn cite(&mut self) -> Node {
        self.child(Cow::Borrowed("cite"))
    }

    /// Defines a piece of computer code
    fn code(&mut self) -> Node {
        self.child(Cow::Borrowed("code"))
    }

    /// Specifies column properties for each column within a `<colgroup>` element
    fn col(&mut self) -> Void {
        self.void_child(Cow::Borrowed("col"))
    }

    /// Specifies a group of one or more columns in a table for formatting
    fn colgroup(&mut self) -> Node {
        self.child(Cow::Borrowed("colgroup"))
    }

    /// Adds a machine-readable translation of a given content
    fn data(&mut self) -> Node {
        self.child(Cow::Borrowed("data"))
    }

    /// Specifies a list of pre-defined options for input controls
    fn datalist(&mut self) -> Node {
        self.child(Cow::Borrowed("datalist"))
    }

    /// Defines a description/value of a term in a description list
    fn dd(&mut self) -> Node {
        self.child(Cow::Borrowed("dd"))
    }

    /// Defines text that has been deleted from a document
    fn del(&mut self) -> Node {
        self.child(Cow::Borrowed("del"))
    }

    /// Defines additional details that the user can view or hide
    fn details(&mut self) -> Node {
        self.child(Cow::Borrowed("details"))
    }

    /// Specifies a term that is going to be defined within the content
    fn dfn(&mut self) -> Node {
        self.child(Cow::Borrowed("dfn"))
    }

    /// Defines a dialog box or window
    fn dialog(&mut self) -> Node {
        self.child(Cow::Borrowed("dialog"))
    }

    /// Defines a section in a document
    fn div(&mut self) -> Node {
        self.child(Cow::Borrowed("div"))
    }

    /// Defines a description list
    fn dl(&mut self) -> Node {
        self.child(Cow::Borrowed("dl"))
    }

    /// Defines a term/name in a description list
    fn dt(&mut self) -> Node {
        self.child(Cow::Borrowed("dt"))
    }

    /// Defines emphasized text
    fn em(&mut self) -> Node {
        self.child(Cow::Borrowed("em"))
    }

    /// Defines a container for an external application
    fn embed(&mut self) -> Void {
        self.void_child(Cow::Borrowed("embed"))
    }

    /// Groups related elements in a form
    fn fieldset(&mut self) -> Node {
        self.child(Cow::Borrowed("fieldset"))
    }

    /// Defines a caption for a `<figure>` element
    fn figcaption(&mut self) -> Node {
        self.child(Cow::Borrowed("figcaption"))
    }

    /// Specifies self-contained content
    fn figure(&mut self) -> Node {
        self.child(Cow::Borrowed("figure"))
    }

    /// Defines a footer for a document or section
    fn footer(&mut self) -> Node {
        self.child(Cow::Borrowed("footer"))
    }

    /// Defines an HTML form for user input
    fn form(&mut self) -> Node {
        self.child(Cow::Borrowed("form"))
    }

    /// Defines HTML headings
    fn h1(&mut self) -> Node {
        self.child(Cow::Borrowed("h1"))
    }

    /// Defines HTML headings
    fn h2(&mut self) -> Node {
        self.child(Cow::Borrowed("h2"))
    }

    /// Defines HTML headings
    fn h3(&mut self) -> Node {
        self.child(Cow::Borrowed("h3"))
    }

    /// Defines HTML headings
    fn h4(&mut self) -> Node {
        self.child(Cow::Borrowed("h4"))
    }

    /// Defines HTML headings
    fn h5(&mut self) -> Node {
        self.child(Cow::Borrowed("h5"))
    }

    /// Defines HTML headings
    fn h6(&mut self) -> Node {
        self.child(Cow::Borrowed("h6"))
    }

    /// Contains metadata/information for the document
    fn head(&mut self) -> Node {
        self.child(Cow::Borrowed("head"))
    }

    /// Defines a header for a document or section
    fn header(&mut self) -> Node {
        self.child(Cow::Borrowed("header"))
    }

    /// Defines a thematic change in the content
    fn hr(&mut self) -> Void {
        self.void_child(Cow::Borrowed("hr"))
    }

    /// Defines the root of an HTML document
    fn html(&mut self) -> Node {
        self.child(Cow::Borrowed("html"))
    }

    /// Defines a part of text in an alternate voice or mood
    fn i(&mut self) -> Node {
        self.child(Cow::Borrowed("i"))
    }

    /// Defines an inline frame
    fn iframe(&mut self) -> Node {
        self.child(Cow::Borrowed("iframe"))
    }

    /// Defines an image
    fn img(&mut self) -> Void {
        self.void_child(Cow::Borrowed("img"))
    }

    /// Defines an input control
    fn input(&mut self) -> Void {
        self.void_child(Cow::Borrowed("input"))
    }

    /// Defines a text that has been inserted into a document
    fn ins(&mut self) -> Node {
        self.child(Cow::Borrowed("ins"))
    }

    /// Defines keyboard input
    fn kbd(&mut self) -> Node {
        self.child(Cow::Borrowed("kbd"))
    }

    /// Defines a label for an `<input>` element
    fn label(&mut self) -> Node {
        self.child(Cow::Borrowed("label"))
    }

    /// Defines a caption for a `<fieldset>` element
    fn legend(&mut self) -> Node {
        self.child(Cow::Borrowed("legend"))
    }

    /// Defines a list item
    fn li(&mut self) -> Node {
        self.child(Cow::Borrowed("li"))
    }

    /// Defines the relationship between a document and an external resource (most used to link to style sheets)
    fn link(&mut self) -> Void {
        self.void_child(Cow::Borrowed("link"))
    }

    /// Specifies the main content of a document
    fn main(&mut self) -> Node {
        self.child(Cow::Borrowed("main"))
    }

    /// Defines an image map
    fn map(&mut self) -> Node {
        self.child(Cow::Borrowed("map"))
    }

    /// Defines marked/highlighted text
    fn mark(&mut self) -> Node {
        self.child(Cow::Borrowed("mark"))
    }

    /// Defines metadata about an HTML document
    fn meta(&mut self) -> Void {
        self.void_child(Cow::Borrowed("meta"))
    }

    /// Defines a scalar measurement within a known range (a gauge)
    fn meter(&mut self) -> Node {
        self.child(Cow::Borrowed("meter"))
    }

    /// Defines navigation links
    fn nav(&mut self) -> Node {
        self.child(Cow::Borrowed("nav"))
    }

    /// Defines an alternate content for users that do not support client-side scripts
    fn noscript(&mut self) -> Node {
        self.child(Cow::Borrowed("noscript"))
    }

    /// Defines a container for an external application
    fn object(&mut self) -> Node {
        self.child(Cow::Borrowed("object"))
    }

    /// Defines an ordered list
    fn ol(&mut self) -> Node {
        self.child(Cow::Borrowed("ol"))
    }

    /// Defines a group of related options in a drop-down list
    fn optgroup(&mut self) -> Node {
        self.child(Cow::Borrowed("optgroup"))
    }

    /// Defines an option in a drop-down list
    fn option(&mut self) -> Node {
        self.child(Cow::Borrowed("option"))
    }

    /// Defines the result of a calculation
    fn output(&mut self) -> Node {
        self.child(Cow::Borrowed("output"))
    }

    /// Defines a paragraph
    fn p(&mut self) -> Node {
        self.child(Cow::Borrowed("p"))
    }

    /// Defines a parameter for an object
    fn param(&mut self) -> Void {
        self.void_child(Cow::Borrowed("param"))
    }

    /// Defines a container for multiple image resources
    fn picture(&mut self) -> Node {
        self.child(Cow::Borrowed("picture"))
    }

    /// Defines preformatted text
    fn pre(&mut self) -> Node {
        self.child(Cow::Borrowed("pre"))
    }

    /// Represents the progress of a task
    fn progress(&mut self) -> Node {
        self.child(Cow::Borrowed("progress"))
    }

    /// Defines a short quotation
    fn q(&mut self) -> Node {
        self.child(Cow::Borrowed("q"))
    }

    /// Defines what to show in browsers that do not support ruby annotations
    fn rp(&mut self) -> Node {
        self.child(Cow::Borrowed("rp"))
    }

    /// Defines an explanation/pronunciation of characters (for East Asian typography)
    fn rt(&mut self) -> Node {
        self.child(Cow::Borrowed("rt"))
    }

    /// Defines a ruby annotation (for East Asian typography)
    fn ruby(&mut self) -> Node {
        self.child(Cow::Borrowed("ruby"))
    }

    /// Defines text that is no longer correct
    fn s(&mut self) -> Node {
        self.child(Cow::Borrowed("s"))
    }

    /// Defines sample output from a computer program
    fn samp(&mut self) -> Node {
        self.child(Cow::Borrowed("samp"))
    }

    /// Defines a client-side script
    fn script(&mut self) -> Node {
        self.child(Cow::Borrowed("script"))
    }

    /// Defines a section in a document
    fn section(&mut self) -> Node {
        self.child(Cow::Borrowed("section"))
    }

    /// Defines a drop-down list
    fn select(&mut self) -> Node {
        self.child(Cow::Borrowed("select"))
    }

    /// Defines smaller text
    fn small(&mut self) -> Node {
        self.child(Cow::Borrowed("small"))
    }

    /// Defines multiple media resources for media elements (`<video>` and `<audio>`)
    fn source(&mut self) -> Void {
        self.void_child(Cow::Borrowed("source"))
    }

    /// Defines a section in a document
    fn span(&mut self) -> Node {
        self.child(Cow::Borrowed("span"))
    }

    /// Defines important text
    fn strong(&mut self) -> Node {
        self.child(Cow::Borrowed("strong"))
    }

    /// Defines style information for a document
    fn style(&mut self) -> Node {
        self.child(Cow::Borrowed("style"))
    }

    /// Defines subscripted text
    fn sub(&mut self) -> Node {
        self.child(Cow::Borrowed("sub"))
    }

    /// Defines a visible heading for a `<details>` element
    fn summary(&mut self) -> Node {
        self.child(Cow::Borrowed("summary"))
    }

    /// Defines superscripted text
    fn sup(&mut self) -> Node {
        self.child(Cow::Borrowed("sup"))
    }

    /// Defines a container for SVG graphics
    fn svg(&mut self) -> Node {
        self.child(Cow::Borrowed("svg"))
    }

    /// Defines a table
    fn table(&mut self) -> Node {
        self.child(Cow::Borrowed("table"))
    }

    /// Groups the body content in a table
    fn tbody(&mut self) -> Node {
        self.child(Cow::Borrowed("tbody"))
    }

    /// Defines a cell in a table
    fn td(&mut self) -> Node {
        self.child(Cow::Borrowed("td"))
    }

    /// Defines a container for content that should be hidden when the page loads
    fn template(&mut self) -> Node {
        self.child(Cow::Borrowed("template"))
    }

    /// Defines a multiline input control (text area)
    fn textarea(&mut self) -> Node {
        self.child(Cow::Borrowed("textarea"))
    }

    /// Groups the footer content in a table
    fn tfoot(&mut self) -> Node {
        self.child(Cow::Borrowed("tfoot"))
    }

    /// Defines a header cell in a table
    fn th(&mut self) -> Node {
        self.child(Cow::Borrowed("th"))
    }

    /// Groups the header content in a table
    fn thead(&mut self) -> Node {
        self.child(Cow::Borrowed("thead"))
    }

    /// Defines a specific time (or datetime)
    fn time(&mut self) -> Node {
        self.child(Cow::Borrowed("time"))
    }

    /// Defines a title for the document
    fn title(&mut self) -> Node {
        self.child(Cow::Borrowed("title"))
    }

    /// Defines a row in a table
    fn tr(&mut self) -> Node {
        self.child(Cow::Borrowed("tr"))
    }

    /// Defines text tracks for media elements (`<video>` and `<audio>`)
    fn track(&mut self) -> Void {
        self.void_child(Cow::Borrowed("track"))
    }

    /// Defines some text that is unarticulated and styled differently from normal text
    fn u(&mut self) -> Node {
        self.child(Cow::Borrowed("u"))
    }

    /// Defines an unordered list
    fn ul(&mut self) -> Node {
        self.child(Cow::Borrowed("ul"))
    }

    /// Defines a variable
    fn var(&mut self) -> Node {
        self.child(Cow::Borrowed("var"))
    }

    /// Defines embedded video content
    fn video(&mut self) -> Node {
        self.child(Cow::Borrowed("video"))
    }

    /// Defines a possible line-break
    fn wbr(&mut self) -> Void {
        self.void_child(Cow::Borrowed("wbr"))
    }
}