-
Notifications
You must be signed in to change notification settings - Fork 2
/
Attributes.cs
1378 lines (1137 loc) · 65.9 KB
/
Attributes.cs
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
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
namespace Markupolation;
/// <summary>HTML attributes.</summary>
public static partial class Attributes
{
/// <summary>
/// Alternative label to use for the header cell when referencing the cell in other contexts.
/// </summary>
/// <remarks>Elements: <see cref="Elements.th(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>abbr="{value}"</c></returns>
public static Attribute abbr(string value) => new(AttributeType.abbr, value);
/// <inheritdoc cref="abbr(string)" />
public static Attribute abbr(object value) => new(AttributeType.abbr, value?.ToString());
/// <summary>
/// Hint for expected file type in file upload controls.
/// </summary>
/// <remarks>Elements: <see cref="Elements.input(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>accept="{value}"</c></returns>
public static Attribute accept(string value) => new(AttributeType.accept, value);
/// <inheritdoc cref="accept(string)" />
public static Attribute accept(object value) => new(AttributeType.accept, value?.ToString());
/// <summary>
/// Character encodings to use for form submission.
/// </summary>
/// <remarks>Elements: <see cref="Elements.form(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>accept_charset="{value}"</c></returns>
public static Attribute accept_charset(string value) => new(AttributeType.accept_charset, value);
/// <inheritdoc cref="accept_charset(string)" />
public static Attribute accept_charset(object value) => new(AttributeType.accept_charset, value?.ToString());
/// <summary>
/// Keyboard shortcut to activate or focus element.
/// </summary>
/// <param name="value">Attribute value.</param>
/// <returns><c>accesskey="{value}"</c></returns>
public static Attribute accesskey(string value) => new(AttributeType.accesskey, value);
/// <inheritdoc cref="accesskey(string)" />
public static Attribute accesskey(object value) => new(AttributeType.accesskey, value?.ToString());
/// <summary>
/// URL to use for form submission.
/// </summary>
/// <remarks>Elements: <see cref="Elements.form(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>action="{value}"</c></returns>
public static Attribute action(string value) => new(AttributeType.action, value);
/// <inheritdoc cref="action(string)" />
public static Attribute action(object value) => new(AttributeType.action, value?.ToString());
/// <summary>
/// Permissions policy to be applied to the iframe's contents.
/// </summary>
/// <remarks>Elements: <see cref="Elements.iframe(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>allow="{value}"</c></returns>
public static Attribute allow(string value) => new(AttributeType.allow, value);
/// <inheritdoc cref="allow(string)" />
public static Attribute allow(object value) => new(AttributeType.allow, value?.ToString());
/// <summary>
/// Whether to allow the iframe's contents to use requestFullscreen().
/// </summary>
/// <remarks>Elements: <see cref="Elements.iframe(Content[])"/>.</remarks>
/// <returns><c>allowfullscreen</c></returns>
public static Attribute allowfullscreen() => new(AttributeType.allowfullscreen);
/// <summary>
/// Replacement text for use when images are not available.
/// </summary>
/// <remarks>Elements: <see cref="Elements.area(Content[])"/>, <see cref="Elements.img(Content[])"/>, <see cref="Elements.input(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>alt="{value}"</c></returns>
public static Attribute alt(string value) => new(AttributeType.alt, value);
/// <inheritdoc cref="alt(string)" />
public static Attribute alt(object value) => new(AttributeType.alt, value?.ToString());
/// <summary>
/// Potential destination for a preload request (for rel="preload" and rel="modulepreload").
/// </summary>
/// <remarks>Elements: <see cref="Elements.link(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>as_="{value}"</c></returns>
public static Attribute as_(string value) => new(AttributeType.as_, value);
/// <inheritdoc cref="as_(string)" />
public static Attribute as_(object value) => new(AttributeType.as_, value?.ToString());
/// <summary>
/// Execute script when available, without blocking while fetching.
/// </summary>
/// <remarks>Elements: <see cref="Elements.script(Content[])"/>.</remarks>
/// <returns><c>async</c></returns>
public static Attribute async() => new(AttributeType.async);
/// <summary>
/// Recommended autocapitalization behavior (for supported input methods).
/// </summary>
/// <param name="value">Attribute value.</param>
/// <returns><c>autocapitalize="{value}"</c></returns>
public static Attribute autocapitalize(string value) => new(AttributeType.autocapitalize, value);
/// <inheritdoc cref="autocapitalize(string)" />
public static Attribute autocapitalize(object value) => new(AttributeType.autocapitalize, value?.ToString());
/// <summary>
/// Default setting for autofill feature for controls in the form.
/// Hint for form autofill feature.
/// </summary>
/// <remarks>Elements: <see cref="Elements.form(Content[])"/>, <see cref="Elements.input(Content[])"/>, <see cref="Elements.select(Content[])"/>, <see cref="Elements.textarea(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>autocomplete="{value}"</c></returns>
public static Attribute autocomplete(string value) => new(AttributeType.autocomplete, value);
/// <inheritdoc cref="autocomplete(string)" />
public static Attribute autocomplete(object value) => new(AttributeType.autocomplete, value?.ToString());
/// <summary>
/// Automatically focus the element when the page is loaded.
/// </summary>
/// <returns><c>autofocus</c></returns>
public static Attribute autofocus() => new(AttributeType.autofocus);
/// <summary>
/// Hint that the media resource can be started automatically when the page is loaded.
/// </summary>
/// <remarks>Elements: <see cref="Elements.audio(Content[])"/>, <see cref="Elements.video(Content[])"/>.</remarks>
/// <returns><c>autoplay</c></returns>
public static Attribute autoplay() => new(AttributeType.autoplay);
/// <summary>
/// Whether the element is potentially render-blocking.
/// </summary>
/// <remarks>Elements: <see cref="Elements.link(Content[])"/>, <see cref="Elements.script(Content[])"/>, <see cref="Elements.style(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>blocking="{value}"</c></returns>
public static Attribute blocking(string value) => new(AttributeType.blocking, value);
/// <inheritdoc cref="blocking(string)" />
public static Attribute blocking(object value) => new(AttributeType.blocking, value?.ToString());
/// <summary>
/// Character encoding declaration.
/// </summary>
/// <remarks>Elements: <see cref="Elements.meta(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>charset="{value}"</c></returns>
public static Attribute charset(string value) => new(AttributeType.charset, value);
/// <inheritdoc cref="charset(string)" />
public static Attribute charset(object value) => new(AttributeType.charset, value?.ToString());
/// <summary>
/// Whether the control is checked.
/// </summary>
/// <remarks>Elements: <see cref="Elements.input(Content[])"/>.</remarks>
/// <returns><c>checked_</c></returns>
public static Attribute checked_() => new(AttributeType.checked_);
/// <summary>
/// Link to the source of the quotation or more information about the edit.
/// </summary>
/// <remarks>Elements: <see cref="Elements.blockquote(Content[])"/>, <see cref="Elements.del(Content[])"/>, <see cref="Elements.ins(Content[])"/>, <see cref="Elements.q(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>cite="{value}"</c></returns>
public static Attribute cite(string value) => new(AttributeType.cite, value);
/// <inheritdoc cref="cite(string)" />
public static Attribute cite(object value) => new(AttributeType.cite, value?.ToString());
/// <summary>
/// Classes to which the element belongs.
/// </summary>
/// <param name="value">Attribute value.</param>
/// <returns><c>class_="{value}"</c></returns>
public static Attribute class_(string value) => new(AttributeType.class_, value);
/// <inheritdoc cref="class_(string)" />
public static Attribute class_(object value) => new(AttributeType.class_, value?.ToString());
/// <summary>
/// Color to use when customizing a site's icon (for rel="mask-icon").
/// </summary>
/// <remarks>Elements: <see cref="Elements.link(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>color="{value}"</c></returns>
public static Attribute color(string value) => new(AttributeType.color, value);
/// <inheritdoc cref="color(string)" />
public static Attribute color(object value) => new(AttributeType.color, value?.ToString());
/// <summary>
/// Maximum number of characters per line.
/// </summary>
/// <remarks>Elements: <see cref="Elements.textarea(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>cols="{value}"</c></returns>
public static Attribute cols(string value) => new(AttributeType.cols, value);
/// <inheritdoc cref="cols(string)" />
public static Attribute cols(object value) => new(AttributeType.cols, value?.ToString());
/// <summary>
/// Number of columns that the cell is to span.
/// </summary>
/// <remarks>Elements: <see cref="Elements.td(Content[])"/>, <see cref="Elements.th(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>colspan="{value}"</c></returns>
public static Attribute colspan(string value) => new(AttributeType.colspan, value);
/// <inheritdoc cref="colspan(string)" />
public static Attribute colspan(object value) => new(AttributeType.colspan, value?.ToString());
/// <summary>
/// Value of the element.
/// </summary>
/// <remarks>Elements: <see cref="Elements.meta(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>content="{value}"</c></returns>
public static Attribute content(string value) => new(AttributeType.content, value);
/// <inheritdoc cref="content(string)" />
public static Attribute content(object value) => new(AttributeType.content, value?.ToString());
/// <summary>
/// Whether the element is editable.
/// </summary>
/// <param name="value">Attribute value.</param>
/// <returns><c>contenteditable="{value}"</c></returns>
public static Attribute contenteditable(string value) => new(AttributeType.contenteditable, value);
/// <inheritdoc cref="contenteditable(string)" />
public static Attribute contenteditable(object value) => new(AttributeType.contenteditable, value?.ToString());
/// <summary>
/// Show user agent controls.
/// </summary>
/// <remarks>Elements: <see cref="Elements.audio(Content[])"/>, <see cref="Elements.video(Content[])"/>.</remarks>
/// <returns><c>controls</c></returns>
public static Attribute controls() => new(AttributeType.controls);
/// <summary>
/// Coordinates for the shape to be created in an image map.
/// </summary>
/// <remarks>Elements: <see cref="Elements.area(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>coords="{value}"</c></returns>
public static Attribute coords(string value) => new(AttributeType.coords, value);
/// <inheritdoc cref="coords(string)" />
public static Attribute coords(object value) => new(AttributeType.coords, value?.ToString());
/// <summary>
/// How the element handles crossorigin requests.
/// </summary>
/// <remarks>Elements: <see cref="Elements.audio(Content[])"/>, <see cref="Elements.img(Content[])"/>, <see cref="Elements.link(Content[])"/>, <see cref="Elements.script(Content[])"/>, <see cref="Elements.video(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>crossorigin="{value}"</c></returns>
public static Attribute crossorigin(string value) => new(AttributeType.crossorigin, value);
/// <inheritdoc cref="crossorigin(string)" />
public static Attribute crossorigin(object value) => new(AttributeType.crossorigin, value?.ToString());
/// <summary>
/// Address of the resource.
/// </summary>
/// <remarks>Elements: <see cref="Elements.object_(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>data="{value}"</c></returns>
public static Attribute data(string value) => new(AttributeType.data, value);
/// <inheritdoc cref="data(string)" />
public static Attribute data(object value) => new(AttributeType.data, value?.ToString());
/// <summary>
/// Date and (optionally) time of the change.
/// Machine-readable value.
/// </summary>
/// <remarks>Elements: <see cref="Elements.del(Content[])"/>, <see cref="Elements.ins(Content[])"/>, <see cref="Elements.time(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>datetime="{value}"</c></returns>
public static Attribute datetime(string value) => new(AttributeType.datetime, value);
/// <inheritdoc cref="datetime(string)" />
public static Attribute datetime(object value) => new(AttributeType.datetime, value?.ToString());
/// <summary>
/// Decoding hint to use when processing this image for presentation.
/// </summary>
/// <remarks>Elements: <see cref="Elements.img(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>decoding="{value}"</c></returns>
public static Attribute decoding(string value) => new(AttributeType.decoding, value);
/// <inheritdoc cref="decoding(string)" />
public static Attribute decoding(object value) => new(AttributeType.decoding, value?.ToString());
/// <summary>
/// Enable the track if no other text track is more suitable.
/// </summary>
/// <remarks>Elements: <see cref="Elements.track(Content[])"/>.</remarks>
/// <returns><c>default_</c></returns>
public static Attribute default_() => new(AttributeType.default_);
/// <summary>
/// Defer script execution.
/// </summary>
/// <remarks>Elements: <see cref="Elements.script(Content[])"/>.</remarks>
/// <returns><c>defer</c></returns>
public static Attribute defer() => new(AttributeType.defer);
/// <summary>
/// The text directionality of the element.
/// The text directionality of the element.
/// </summary>
/// <param name="value">Attribute value.</param>
/// <returns><c>dir="{value}"</c></returns>
public static Attribute dir(string value) => new(AttributeType.dir, value);
/// <inheritdoc cref="dir(string)" />
public static Attribute dir(object value) => new(AttributeType.dir, value?.ToString());
/// <summary>
/// Name of form control to use for sending the element's directionality in form submission.
/// </summary>
/// <remarks>Elements: <see cref="Elements.input(Content[])"/>, <see cref="Elements.textarea(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>dirname="{value}"</c></returns>
public static Attribute dirname(string value) => new(AttributeType.dirname, value);
/// <inheritdoc cref="dirname(string)" />
public static Attribute dirname(object value) => new(AttributeType.dirname, value?.ToString());
/// <summary>
/// Whether the form control is disabled.
/// Whether the descendant form controls, except any inside legend, are disabled.
/// Whether the link is disabled.
/// </summary>
/// <remarks>Elements: <see cref="Elements.button(Content[])"/>, <see cref="Elements.input(Content[])"/>, <see cref="Elements.optgroup(Content[])"/>, <see cref="Elements.option(Content[])"/>, <see cref="Elements.select(Content[])"/>, <see cref="Elements.textarea(Content[])"/>, <see cref="Elements.fieldset(Content[])"/>, <see cref="Elements.link(Content[])"/>.</remarks>
/// <returns><c>disabled</c></returns>
public static Attribute disabled() => new(AttributeType.disabled);
/// <summary>
/// Whether to download the resource instead of navigating to it, and its filename if so.
/// </summary>
/// <remarks>Elements: <see cref="Elements.a(Content[])"/>, <see cref="Elements.area(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>download="{value}"</c></returns>
public static Attribute download(string value) => new(AttributeType.download, value);
/// <inheritdoc cref="download(string)" />
public static Attribute download(object value) => new(AttributeType.download, value?.ToString());
/// <summary>
/// Whether the element is draggable.
/// </summary>
/// <param name="value">Attribute value.</param>
/// <returns><c>draggable="{value}"</c></returns>
public static Attribute draggable(string value) => new(AttributeType.draggable, value);
/// <inheritdoc cref="draggable(string)" />
public static Attribute draggable(object value) => new(AttributeType.draggable, value?.ToString());
/// <summary>
/// Entry list encoding type to use for form submission.
/// </summary>
/// <remarks>Elements: <see cref="Elements.form(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>enctype="{value}"</c></returns>
public static Attribute enctype(string value) => new(AttributeType.enctype, value);
/// <inheritdoc cref="enctype(string)" />
public static Attribute enctype(object value) => new(AttributeType.enctype, value?.ToString());
/// <summary>
/// Hint for selecting an enter key action.
/// </summary>
/// <param name="value">Attribute value.</param>
/// <returns><c>enterkeyhint="{value}"</c></returns>
public static Attribute enterkeyhint(string value) => new(AttributeType.enterkeyhint, value);
/// <inheritdoc cref="enterkeyhint(string)" />
public static Attribute enterkeyhint(object value) => new(AttributeType.enterkeyhint, value?.ToString());
/// <summary>
/// Sets the priority for fetches initiated by the element.
/// </summary>
/// <remarks>Elements: <see cref="Elements.img(Content[])"/>, <see cref="Elements.link(Content[])"/>, <see cref="Elements.script(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>fetchpriority="{value}"</c></returns>
public static Attribute fetchpriority(string value) => new(AttributeType.fetchpriority, value);
/// <inheritdoc cref="fetchpriority(string)" />
public static Attribute fetchpriority(object value) => new(AttributeType.fetchpriority, value?.ToString());
/// <summary>
/// Associate the label with form control.
/// Specifies controls from which the output was calculated.
/// </summary>
/// <remarks>Elements: <see cref="Elements.label(Content[])"/>, <see cref="Elements.output(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>for_="{value}"</c></returns>
public static Attribute for_(string value) => new(AttributeType.for_, value);
/// <inheritdoc cref="for_(string)" />
public static Attribute for_(object value) => new(AttributeType.for_, value?.ToString());
/// <summary>
/// Associates the element with a form element.
/// </summary>
/// <remarks>Elements: <see cref="Elements.button(Content[])"/>, <see cref="Elements.fieldset(Content[])"/>, <see cref="Elements.input(Content[])"/>, <see cref="Elements.object_(Content[])"/>, <see cref="Elements.output(Content[])"/>, <see cref="Elements.select(Content[])"/>, <see cref="Elements.textarea(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>form="{value}"</c></returns>
public static Attribute form(string value) => new(AttributeType.form, value);
/// <inheritdoc cref="form(string)" />
public static Attribute form(object value) => new(AttributeType.form, value?.ToString());
/// <summary>
/// URL to use for form submission.
/// </summary>
/// <remarks>Elements: <see cref="Elements.button(Content[])"/>, <see cref="Elements.input(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>formaction="{value}"</c></returns>
public static Attribute formaction(string value) => new(AttributeType.formaction, value);
/// <inheritdoc cref="formaction(string)" />
public static Attribute formaction(object value) => new(AttributeType.formaction, value?.ToString());
/// <summary>
/// Entry list encoding type to use for form submission.
/// </summary>
/// <remarks>Elements: <see cref="Elements.button(Content[])"/>, <see cref="Elements.input(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>formenctype="{value}"</c></returns>
public static Attribute formenctype(string value) => new(AttributeType.formenctype, value);
/// <inheritdoc cref="formenctype(string)" />
public static Attribute formenctype(object value) => new(AttributeType.formenctype, value?.ToString());
/// <summary>
/// Variant to use for form submission.
/// </summary>
/// <remarks>Elements: <see cref="Elements.button(Content[])"/>, <see cref="Elements.input(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>formmethod="{value}"</c></returns>
public static Attribute formmethod(string value) => new(AttributeType.formmethod, value);
/// <inheritdoc cref="formmethod(string)" />
public static Attribute formmethod(object value) => new(AttributeType.formmethod, value?.ToString());
/// <summary>
/// Bypass form control validation for form submission.
/// </summary>
/// <remarks>Elements: <see cref="Elements.button(Content[])"/>, <see cref="Elements.input(Content[])"/>.</remarks>
/// <returns><c>formnovalidate</c></returns>
public static Attribute formnovalidate() => new(AttributeType.formnovalidate);
/// <summary>
/// Navigable for form submission.
/// </summary>
/// <remarks>Elements: <see cref="Elements.button(Content[])"/>, <see cref="Elements.input(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>formtarget="{value}"</c></returns>
public static Attribute formtarget(string value) => new(AttributeType.formtarget, value);
/// <inheritdoc cref="formtarget(string)" />
public static Attribute formtarget(object value) => new(AttributeType.formtarget, value?.ToString());
/// <summary>
/// The header cells for this cell.
/// </summary>
/// <remarks>Elements: <see cref="Elements.td(Content[])"/>, <see cref="Elements.th(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>headers="{value}"</c></returns>
public static Attribute headers(string value) => new(AttributeType.headers, value);
/// <inheritdoc cref="headers(string)" />
public static Attribute headers(object value) => new(AttributeType.headers, value?.ToString());
/// <summary>
/// Vertical dimension.
/// </summary>
/// <remarks>Elements: <see cref="Elements.canvas(Content[])"/>, <see cref="Elements.embed(Content[])"/>, <see cref="Elements.iframe(Content[])"/>, <see cref="Elements.img(Content[])"/>, <see cref="Elements.input(Content[])"/>, <see cref="Elements.object_(Content[])"/>, <see cref="Elements.source(Content[])"/>, <see cref="Elements.video(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>height="{value}"</c></returns>
public static Attribute height(string value) => new(AttributeType.height, value);
/// <inheritdoc cref="height(string)" />
public static Attribute height(object value) => new(AttributeType.height, value?.ToString());
/// <summary>
/// Whether the element is relevant.
/// </summary>
/// <param name="value">Attribute value.</param>
/// <returns><c>hidden="{value}"</c></returns>
public static Attribute hidden(string value) => new(AttributeType.hidden, value);
/// <inheritdoc cref="hidden(string)" />
public static Attribute hidden(object value) => new(AttributeType.hidden, value?.ToString());
/// <summary>
/// Low limit of high range.
/// </summary>
/// <remarks>Elements: <see cref="Elements.meter(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>high="{value}"</c></returns>
public static Attribute high(string value) => new(AttributeType.high, value);
/// <inheritdoc cref="high(string)" />
public static Attribute high(object value) => new(AttributeType.high, value?.ToString());
/// <summary>
/// Address of the hyperlink.
/// Address of the hyperlink.
/// Document base URL.
/// </summary>
/// <remarks>Elements: <see cref="Elements.a(Content[])"/>, <see cref="Elements.area(Content[])"/>, <see cref="Elements.link(Content[])"/>, <see cref="Elements.base_(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>href="{value}"</c></returns>
public static Attribute href(string value) => new(AttributeType.href, value);
/// <inheritdoc cref="href(string)" />
public static Attribute href(object value) => new(AttributeType.href, value?.ToString());
/// <summary>
/// Language of the linked resource.
/// </summary>
/// <remarks>Elements: <see cref="Elements.a(Content[])"/>, <see cref="Elements.link(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>hreflang="{value}"</c></returns>
public static Attribute hreflang(string value) => new(AttributeType.hreflang, value);
/// <inheritdoc cref="hreflang(string)" />
public static Attribute hreflang(object value) => new(AttributeType.hreflang, value?.ToString());
/// <summary>
/// Pragma directive.
/// </summary>
/// <remarks>Elements: <see cref="Elements.meta(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>http_equiv="{value}"</c></returns>
public static Attribute http_equiv(string value) => new(AttributeType.http_equiv, value);
/// <inheritdoc cref="http_equiv(string)" />
public static Attribute http_equiv(object value) => new(AttributeType.http_equiv, value?.ToString());
/// <summary>
/// The element's ID.
/// </summary>
/// <param name="value">Attribute value.</param>
/// <returns><c>id="{value}"</c></returns>
public static Attribute id(string value) => new(AttributeType.id, value);
/// <inheritdoc cref="id(string)" />
public static Attribute id(object value) => new(AttributeType.id, value?.ToString());
/// <summary>
/// Image sizes for different page layouts (for rel="preload").
/// </summary>
/// <remarks>Elements: <see cref="Elements.link(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>imagesizes="{value}"</c></returns>
public static Attribute imagesizes(string value) => new(AttributeType.imagesizes, value);
/// <inheritdoc cref="imagesizes(string)" />
public static Attribute imagesizes(object value) => new(AttributeType.imagesizes, value?.ToString());
/// <summary>
/// Images to use in different situations, e.g., high-resolution displays, small monitors, etc. (for rel="preload").
/// </summary>
/// <remarks>Elements: <see cref="Elements.link(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>imagesrcset="{value}"</c></returns>
public static Attribute imagesrcset(string value) => new(AttributeType.imagesrcset, value);
/// <inheritdoc cref="imagesrcset(string)" />
public static Attribute imagesrcset(object value) => new(AttributeType.imagesrcset, value?.ToString());
/// <summary>
/// Whether the element is inert.
/// </summary>
/// <returns><c>inert</c></returns>
public static Attribute inert() => new(AttributeType.inert);
/// <summary>
/// Hint for selecting an input modality.
/// </summary>
/// <param name="value">Attribute value.</param>
/// <returns><c>inputmode="{value}"</c></returns>
public static Attribute inputmode(string value) => new(AttributeType.inputmode, value);
/// <inheritdoc cref="inputmode(string)" />
public static Attribute inputmode(object value) => new(AttributeType.inputmode, value?.ToString());
/// <summary>
/// Integrity metadata used in Subresource Integrity checks [SRI].
/// </summary>
/// <remarks>Elements: <see cref="Elements.link(Content[])"/>, <see cref="Elements.script(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>integrity="{value}"</c></returns>
public static Attribute integrity(string value) => new(AttributeType.integrity, value);
/// <inheritdoc cref="integrity(string)" />
public static Attribute integrity(object value) => new(AttributeType.integrity, value?.ToString());
/// <summary>
/// Creates a customized built-in element.
/// </summary>
/// <param name="value">Attribute value.</param>
/// <returns><c>is_="{value}"</c></returns>
public static Attribute is_(string value) => new(AttributeType.is_, value);
/// <inheritdoc cref="is_(string)" />
public static Attribute is_(object value) => new(AttributeType.is_, value?.ToString());
/// <summary>
/// Whether the image is a server-side image map.
/// </summary>
/// <remarks>Elements: <see cref="Elements.img(Content[])"/>.</remarks>
/// <returns><c>ismap</c></returns>
public static Attribute ismap() => new(AttributeType.ismap);
/// <summary>
/// Global identifier for a microdata item.
/// </summary>
/// <param name="value">Attribute value.</param>
/// <returns><c>itemid="{value}"</c></returns>
public static Attribute itemid(string value) => new(AttributeType.itemid, value);
/// <inheritdoc cref="itemid(string)" />
public static Attribute itemid(object value) => new(AttributeType.itemid, value?.ToString());
/// <summary>
/// Property names of a microdata item.
/// </summary>
/// <param name="value">Attribute value.</param>
/// <returns><c>itemprop="{value}"</c></returns>
public static Attribute itemprop(string value) => new(AttributeType.itemprop, value);
/// <inheritdoc cref="itemprop(string)" />
public static Attribute itemprop(object value) => new(AttributeType.itemprop, value?.ToString());
/// <summary>
/// Referenced elements.
/// </summary>
/// <param name="value">Attribute value.</param>
/// <returns><c>itemref="{value}"</c></returns>
public static Attribute itemref(string value) => new(AttributeType.itemref, value);
/// <inheritdoc cref="itemref(string)" />
public static Attribute itemref(object value) => new(AttributeType.itemref, value?.ToString());
/// <summary>
/// Introduces a microdata item.
/// </summary>
/// <returns><c>itemscope</c></returns>
public static Attribute itemscope() => new(AttributeType.itemscope);
/// <summary>
/// Item types of a microdata item.
/// </summary>
/// <param name="value">Attribute value.</param>
/// <returns><c>itemtype="{value}"</c></returns>
public static Attribute itemtype(string value) => new(AttributeType.itemtype, value);
/// <inheritdoc cref="itemtype(string)" />
public static Attribute itemtype(object value) => new(AttributeType.itemtype, value?.ToString());
/// <summary>
/// The type of text track.
/// </summary>
/// <remarks>Elements: <see cref="Elements.track(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>kind="{value}"</c></returns>
public static Attribute kind(string value) => new(AttributeType.kind, value);
/// <inheritdoc cref="kind(string)" />
public static Attribute kind(object value) => new(AttributeType.kind, value?.ToString());
/// <summary>
/// User-visible label.
/// </summary>
/// <remarks>Elements: <see cref="Elements.optgroup(Content[])"/>, <see cref="Elements.option(Content[])"/>, <see cref="Elements.track(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>label="{value}"</c></returns>
public static Attribute label(string value) => new(AttributeType.label, value);
/// <inheritdoc cref="label(string)" />
public static Attribute label(object value) => new(AttributeType.label, value?.ToString());
/// <summary>
/// Language of the element.
/// </summary>
/// <param name="value">Attribute value.</param>
/// <returns><c>lang="{value}"</c></returns>
public static Attribute lang(string value) => new(AttributeType.lang, value);
/// <inheritdoc cref="lang(string)" />
public static Attribute lang(object value) => new(AttributeType.lang, value?.ToString());
/// <summary>
/// List of autocomplete options.
/// </summary>
/// <remarks>Elements: <see cref="Elements.input(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>list="{value}"</c></returns>
public static Attribute list(string value) => new(AttributeType.list, value);
/// <inheritdoc cref="list(string)" />
public static Attribute list(object value) => new(AttributeType.list, value?.ToString());
/// <summary>
/// Used when determining loading deferral.
/// </summary>
/// <remarks>Elements: <see cref="Elements.iframe(Content[])"/>, <see cref="Elements.img(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>loading="{value}"</c></returns>
public static Attribute loading(string value) => new(AttributeType.loading, value);
/// <inheritdoc cref="loading(string)" />
public static Attribute loading(object value) => new(AttributeType.loading, value?.ToString());
/// <summary>
/// Whether to loop the media resource.
/// </summary>
/// <remarks>Elements: <see cref="Elements.audio(Content[])"/>, <see cref="Elements.video(Content[])"/>.</remarks>
/// <returns><c>loop</c></returns>
public static Attribute loop() => new(AttributeType.loop);
/// <summary>
/// High limit of low range.
/// </summary>
/// <remarks>Elements: <see cref="Elements.meter(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>low="{value}"</c></returns>
public static Attribute low(string value) => new(AttributeType.low, value);
/// <inheritdoc cref="low(string)" />
public static Attribute low(object value) => new(AttributeType.low, value?.ToString());
/// <summary>
/// Maximum value.
/// Upper bound of range.
/// </summary>
/// <remarks>Elements: <see cref="Elements.input(Content[])"/>, <see cref="Elements.meter(Content[])"/>, <see cref="Elements.progress(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>max="{value}"</c></returns>
public static Attribute max(string value) => new(AttributeType.max, value);
/// <inheritdoc cref="max(string)" />
public static Attribute max(object value) => new(AttributeType.max, value?.ToString());
/// <summary>
/// Maximum length of value.
/// </summary>
/// <remarks>Elements: <see cref="Elements.input(Content[])"/>, <see cref="Elements.textarea(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>maxlength="{value}"</c></returns>
public static Attribute maxlength(string value) => new(AttributeType.maxlength, value);
/// <inheritdoc cref="maxlength(string)" />
public static Attribute maxlength(object value) => new(AttributeType.maxlength, value?.ToString());
/// <summary>
/// Applicable media.
/// </summary>
/// <remarks>Elements: <see cref="Elements.link(Content[])"/>, <see cref="Elements.meta(Content[])"/>, <see cref="Elements.source(Content[])"/>, <see cref="Elements.style(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>media="{value}"</c></returns>
public static Attribute media(string value) => new(AttributeType.media, value);
/// <inheritdoc cref="media(string)" />
public static Attribute media(object value) => new(AttributeType.media, value?.ToString());
/// <summary>
/// Variant to use for form submission.
/// </summary>
/// <remarks>Elements: <see cref="Elements.form(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>method="{value}"</c></returns>
public static Attribute method(string value) => new(AttributeType.method, value);
/// <inheritdoc cref="method(string)" />
public static Attribute method(object value) => new(AttributeType.method, value?.ToString());
/// <summary>
/// Minimum value.
/// Lower bound of range.
/// </summary>
/// <remarks>Elements: <see cref="Elements.input(Content[])"/>, <see cref="Elements.meter(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>min="{value}"</c></returns>
public static Attribute min(string value) => new(AttributeType.min, value);
/// <inheritdoc cref="min(string)" />
public static Attribute min(object value) => new(AttributeType.min, value?.ToString());
/// <summary>
/// Minimum length of value.
/// </summary>
/// <remarks>Elements: <see cref="Elements.input(Content[])"/>, <see cref="Elements.textarea(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>minlength="{value}"</c></returns>
public static Attribute minlength(string value) => new(AttributeType.minlength, value);
/// <inheritdoc cref="minlength(string)" />
public static Attribute minlength(object value) => new(AttributeType.minlength, value?.ToString());
/// <summary>
/// Whether to allow multiple values.
/// </summary>
/// <remarks>Elements: <see cref="Elements.input(Content[])"/>, <see cref="Elements.select(Content[])"/>.</remarks>
/// <returns><c>multiple</c></returns>
public static Attribute multiple() => new(AttributeType.multiple);
/// <summary>
/// Whether to mute the media resource by default.
/// </summary>
/// <remarks>Elements: <see cref="Elements.audio(Content[])"/>, <see cref="Elements.video(Content[])"/>.</remarks>
/// <returns><c>muted</c></returns>
public static Attribute muted() => new(AttributeType.muted);
/// <summary>
/// Name of the element to use for form submission and in the form.elements API.
/// Name of group of mutually-exclusive details elements.
/// Name of form to use in the document.forms API.
/// Name of content navigable.
/// Name of image map to reference from the usemap attribute.
/// Metadata name.
/// Name of shadow tree slot.
/// </summary>
/// <remarks>Elements: <see cref="Elements.button(Content[])"/>, <see cref="Elements.fieldset(Content[])"/>, <see cref="Elements.input(Content[])"/>, <see cref="Elements.output(Content[])"/>, <see cref="Elements.select(Content[])"/>, <see cref="Elements.textarea(Content[])"/>, <see cref="Elements.details(Content[])"/>, <see cref="Elements.form(Content[])"/>, <see cref="Elements.iframe(Content[])"/>, <see cref="Elements.object_(Content[])"/>, <see cref="Elements.map(Content[])"/>, <see cref="Elements.meta(Content[])"/>, <see cref="Elements.slot(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>name="{value}"</c></returns>
public static Attribute name(string value) => new(AttributeType.name, value);
/// <inheritdoc cref="name(string)" />
public static Attribute name(object value) => new(AttributeType.name, value?.ToString());
/// <summary>
/// Prevents execution in user agents that support module scripts.
/// </summary>
/// <remarks>Elements: <see cref="Elements.script(Content[])"/>.</remarks>
/// <returns><c>nomodule</c></returns>
public static Attribute nomodule() => new(AttributeType.nomodule);
/// <summary>
/// Cryptographic nonce used in Content Security Policy checks [CSP].
/// </summary>
/// <param name="value">Attribute value.</param>
/// <returns><c>nonce="{value}"</c></returns>
public static Attribute nonce(string value) => new(AttributeType.nonce, value);
/// <inheritdoc cref="nonce(string)" />
public static Attribute nonce(object value) => new(AttributeType.nonce, value?.ToString());
/// <summary>
/// Bypass form control validation for form submission.
/// </summary>
/// <remarks>Elements: <see cref="Elements.form(Content[])"/>.</remarks>
/// <returns><c>novalidate</c></returns>
public static Attribute novalidate() => new(AttributeType.novalidate);
/// <summary>
/// Whether the details are visible.
/// Whether the dialog box is showing.
/// </summary>
/// <remarks>Elements: <see cref="Elements.details(Content[])"/>, <see cref="Elements.dialog(Content[])"/>.</remarks>
/// <returns><c>open</c></returns>
public static Attribute open() => new(AttributeType.open);
/// <summary>
/// Optimum value in gauge.
/// </summary>
/// <remarks>Elements: <see cref="Elements.meter(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>optimum="{value}"</c></returns>
public static Attribute optimum(string value) => new(AttributeType.optimum, value);
/// <inheritdoc cref="optimum(string)" />
public static Attribute optimum(object value) => new(AttributeType.optimum, value?.ToString());
/// <summary>
/// Pattern to be matched by the form control's value.
/// </summary>
/// <remarks>Elements: <see cref="Elements.input(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>pattern="{value}"</c></returns>
public static Attribute pattern(string value) => new(AttributeType.pattern, value);
/// <inheritdoc cref="pattern(string)" />
public static Attribute pattern(object value) => new(AttributeType.pattern, value?.ToString());
/// <summary>
/// URLs to ping.
/// </summary>
/// <param name="value">Attribute value.</param>
/// <returns><c>ping="{value}"</c></returns>
public static Attribute ping(string value) => new(AttributeType.ping, value);
/// <inheritdoc cref="ping(string)" />
public static Attribute ping(object value) => new(AttributeType.ping, value?.ToString());
/// <summary>
/// User-visible label to be placed within the form control.
/// </summary>
/// <remarks>Elements: <see cref="Elements.input(Content[])"/>, <see cref="Elements.textarea(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>placeholder="{value}"</c></returns>
public static Attribute placeholder(string value) => new(AttributeType.placeholder, value);
/// <inheritdoc cref="placeholder(string)" />
public static Attribute placeholder(object value) => new(AttributeType.placeholder, value?.ToString());
/// <summary>
/// Encourage the user agent to display video content within the element's playback area.
/// </summary>
/// <remarks>Elements: <see cref="Elements.video(Content[])"/>.</remarks>
/// <returns><c>playsinline</c></returns>
public static Attribute playsinline() => new(AttributeType.playsinline);
/// <summary>
/// Makes the element a popover element.
/// </summary>
/// <param name="value">Attribute value.</param>
/// <returns><c>popover="{value}"</c></returns>
public static Attribute popover(string value) => new(AttributeType.popover, value);
/// <inheritdoc cref="popover(string)" />
public static Attribute popover(object value) => new(AttributeType.popover, value?.ToString());
/// <summary>
/// Targets a popover element to toggle, show, or hide.
/// </summary>
/// <remarks>Elements: <see cref="Elements.button(Content[])"/>, <see cref="Elements.input(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>popovertarget="{value}"</c></returns>
public static Attribute popovertarget(string value) => new(AttributeType.popovertarget, value);
/// <inheritdoc cref="popovertarget(string)" />
public static Attribute popovertarget(object value) => new(AttributeType.popovertarget, value?.ToString());
/// <summary>
/// Indicates whether a targeted popover element is to be toggled, shown, or hidden.
/// </summary>
/// <remarks>Elements: <see cref="Elements.button(Content[])"/>, <see cref="Elements.input(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>popovertargetaction="{value}"</c></returns>
public static Attribute popovertargetaction(string value) => new(AttributeType.popovertargetaction, value);
/// <inheritdoc cref="popovertargetaction(string)" />
public static Attribute popovertargetaction(object value) => new(AttributeType.popovertargetaction, value?.ToString());
/// <summary>
/// Poster frame to show prior to video playback.
/// </summary>
/// <remarks>Elements: <see cref="Elements.video(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>poster="{value}"</c></returns>
public static Attribute poster(string value) => new(AttributeType.poster, value);
/// <inheritdoc cref="poster(string)" />
public static Attribute poster(object value) => new(AttributeType.poster, value?.ToString());
/// <summary>
/// Hints how much buffering the media resource will likely need.
/// </summary>
/// <remarks>Elements: <see cref="Elements.audio(Content[])"/>, <see cref="Elements.video(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>
/// <returns><c>preload="{value}"</c></returns>
public static Attribute preload(string value) => new(AttributeType.preload, value);
/// <inheritdoc cref="preload(string)" />
public static Attribute preload(object value) => new(AttributeType.preload, value?.ToString());
/// <summary>
/// Whether to allow the value to be edited by the user.
/// Affects willValidate, plus any behavior added by the custom element author.
/// </summary>
/// <remarks>Elements: <see cref="Elements.input(Content[])"/>, <see cref="Elements.textarea(Content[])"/>.</remarks>
/// <returns><c>readonly_</c></returns>
public static Attribute readonly_() => new(AttributeType.readonly_);
/// <summary>
/// Referrer policy for fetches initiated by the element.
/// </summary>
/// <remarks>Elements: <see cref="Elements.a(Content[])"/>, <see cref="Elements.area(Content[])"/>, <see cref="Elements.iframe(Content[])"/>, <see cref="Elements.img(Content[])"/>, <see cref="Elements.link(Content[])"/>, <see cref="Elements.script(Content[])"/>.</remarks>
/// <param name="value">Attribute value.</param>