phlex 2.0.0.beta2 → 2.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,726 +2,1037 @@
2
2
 
3
3
  # Standard HTML elements accept content and always have a closing tag.
4
4
  module Phlex::HTML::StandardElements
5
- extend Phlex::Elements
6
-
7
- # @!method a(**attributes, &content)
8
- # Outputs an `<a>` tag.
9
- # @return [nil]
10
- # @yieldparam component [self]
11
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/a
12
- register_element :a, tag: "a"
13
-
14
- # @!method abbr(**attributes, &content)
15
- # Outputs an `<abbr>` tag.
16
- # @return [nil]
17
- # @yieldparam component [self]
18
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/abbr
19
- register_element :abbr
20
-
21
- # @!method address(**attributes, &content)
22
- # Outputs an `<address>` tag.
23
- # @return [nil]
24
- # @yieldparam component [self]
25
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/address
26
- register_element :address
27
-
28
- # @!method article(**attributes, &content)
29
- # Outputs an `<article>` tag.
30
- # @return [nil]
31
- # @yieldparam component [self]
32
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/article
33
- register_element :article
34
-
35
- # @!method aside(**attributes, &content)
36
- # Outputs an `<aside>` tag.
37
- # @return [nil]
38
- # @yieldparam component [self]
39
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/aside
40
- register_element :aside
41
-
42
- # @!method audio(**attributes, &content)
43
- # Outputs an `<audio>` tag.
44
- # @return [nil]
45
- # @yieldparam component [self]
46
- # @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio
47
- register_element :audio
48
-
49
- # @!method b(**attributes, &content)
50
- # Outputs a `<b>` tag.
51
- # @return [nil]
52
- # @yieldparam component [self]
53
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/b
54
- register_element :b
55
-
56
- # @!method base(**attributes, &content)
57
- # Outputs a `<base>` tag.
58
- # @return [nil]
59
- # @yieldparam component [self]
60
- # @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
61
- register_element :base
62
-
63
- # @!method bdi(**attributes, &content)
64
- # Outputs a `<bdi>` tag.
65
- # @return [nil]
66
- # @yieldparam component [self]
67
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/bdi
68
- register_element :bdi
69
-
70
- # @!method bdo(**attributes, &content)
71
- # Outputs a `<bdo>` tag.
72
- # @return [nil]
73
- # @yieldparam component [self]
74
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/bdo
75
- register_element :bdo
76
-
77
- # @!method blockquote(**attributes, &content)
78
- # Outputs a `<blockquote>` tag.
79
- # @return [nil]
80
- # @yieldparam component [self]
81
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/blockquote
82
- register_element :blockquote
83
-
84
- # @!method body(**attributes, &content)
85
- # Outputs a `<body>` tag.
86
- # @return [nil]
87
- # @yieldparam component [self]
88
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/body
89
- register_element :body
90
-
91
- # @!method button(**attributes, &content)
92
- # Outputs a `<button>` tag.
93
- # @return [nil]
94
- # @yieldparam component [self]
95
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/button
96
- register_element :button
97
-
98
- # @!method canvas(**attributes, &content)
99
- # Outputs a `<canvas>` tag.
100
- # @return [nil]
101
- # @yieldparam component [self]
102
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/canvas
103
- register_element :canvas
104
-
105
- # @!method caption(**attributes, &content)
106
- # Outputs a `<caption>` tag.
107
- # @return [nil]
108
- # @yieldparam component [self]
109
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/caption
110
- register_element :caption
111
-
112
- # @!method cite(**attributes, &content)
113
- # Outputs a `<cite>` tag.
114
- # @return [nil]
115
- # @yieldparam component [self]
116
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/cite
117
- register_element :cite
118
-
119
- # @!method code(**attributes, &content)
120
- # Outputs a `<code>` tag.
121
- # @return [nil]
122
- # @yieldparam component [self]
123
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/code
124
- register_element :code
125
-
126
- # @!method colgroup(**attributes, &content)
127
- # Outputs a `<colgroup>` tag.
128
- # @return [nil]
129
- # @yieldparam component [self]
130
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/colgroup
131
- register_element :colgroup
132
-
133
- # @!method data(**attributes, &content)
134
- # Outputs a `<data>` tag.
135
- # @return [nil]
136
- # @yieldparam component [self]
137
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/data
138
- register_element :data
139
-
140
- # @!method datalist(**attributes, &content)
141
- # Outputs a `<datalist>` tag.
142
- # @return [nil]
143
- # @yieldparam component [self]
144
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/datalist
145
- register_element :datalist
146
-
147
- # @!method dd(**attributes, &content)
148
- # Outputs a `<dd>` tag.
149
- # @return [nil]
150
- # @yieldparam component [self]
151
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/dd
152
- register_element :dd
153
-
154
- # @!method del(**attributes, &content)
155
- # Outputs a `<del>` tag.
156
- # @return [nil]
157
- # @yieldparam component [self]
158
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/del
159
- register_element :del
160
-
161
- # @!method details(**attributes, &content)
162
- # Outputs a `<details>` tag.
163
- # @return [nil]
164
- # @yieldparam component [self]
165
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/details
166
- register_element :details
167
-
168
- # @!method dfn(**attributes, &content)
169
- # Outputs a `<dfn>` tag.
170
- # @return [nil]
171
- # @yieldparam component [self]
172
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/dfn
173
- register_element :dfn
174
-
175
- # @!method dialog(**attributes, &content)
176
- # Outputs a `<dialog>` tag.
177
- # @return [nil]
178
- # @yieldparam component [self]
179
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/dialog
180
- register_element :dialog
181
-
182
- # @!method div(**attributes, &content)
183
- # Outputs a `<div>` tag.
184
- # @return [nil]
185
- # @yieldparam component [self]
186
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/div
187
- register_element :div
188
-
189
- # @!method dl(**attributes, &content)
190
- # Outputs a `<dl>` tag.
191
- # @return [nil]
192
- # @yieldparam component [self]
193
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/dl
194
- register_element :dl
195
-
196
- # @!method dt(**attributes, &content)
197
- # Outputs a `<dt>` tag.
198
- # @return [nil]
199
- # @yieldparam component [self]
200
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/dt
201
- register_element :dt
202
-
203
- # @!method em(**attributes, &content)
204
- # Outputs an `<em>` tag.
205
- # @return [nil]
206
- # @yieldparam component [self]
207
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/em
208
- register_element :em
209
-
210
- # @!method fieldset(**attributes, &content)
211
- # Outputs a `<fieldset>` tag.
212
- # @return [nil]
213
- # @yieldparam component [self]
214
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/fieldset
215
- register_element :fieldset
216
-
217
- # @!method figcaption(**attributes, &content)
218
- # Outputs a `<figcaption>` tag.
219
- # @return [nil]
220
- # @yieldparam component [self]
221
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/figcaption
222
- register_element :figcaption
223
-
224
- # @!method figure(**attributes, &content)
225
- # Outputs a `<figure>` tag.
226
- # @return [nil]
227
- # @yieldparam component [self]
228
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/figure
229
- register_element :figure
230
-
231
- # @!method footer(**attributes, &content)
232
- # Outputs a `<footer>` tag.
233
- # @return [nil]
234
- # @yieldparam component [self]
235
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/footer
236
- register_element :footer
237
-
238
- # @!method form(**attributes, &content)
239
- # Outputs a `<form>` tag.
240
- # @return [nil]
241
- # @yieldparam component [self]
242
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/form
243
- register_element :form
244
-
245
- # @!method h1(**attributes, &content)
246
- # Outputs an `<h1>` tag.
247
- # @return [nil]
248
- # @yieldparam component [self]
249
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/h1
250
- register_element :h1
251
-
252
- # @!method h2(**attributes, &content)
253
- # Outputs an `<h2>` tag.
254
- # @return [nil]
255
- # @yieldparam component [self]
256
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/h2
257
- register_element :h2
258
-
259
- # @!method h3(**attributes, &content)
260
- # Outputs an `<h3>` tag.
261
- # @return [nil]
262
- # @yieldparam component [self]
263
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/h3
264
- register_element :h3
265
-
266
- # @!method h4(**attributes, &content)
267
- # Outputs an `<h4>` tag.
268
- # @return [nil]
269
- # @yieldparam component [self]
270
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/h4
271
- register_element :h4
272
-
273
- # @!method h5(**attributes, &content)
274
- # Outputs an `<h5>` tag.
275
- # @return [nil]
276
- # @yieldparam component [self]
277
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/h5
278
- register_element :h5
279
-
280
- # @!method h6(**attributes, &content)
281
- # Outputs an `<h6>` tag.
282
- # @return [nil]
283
- # @yieldparam component [self]
284
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/h6
285
- register_element :h6
286
-
287
- # @!method head(**attributes, &content)
288
- # Outputs a `<head>` tag.
289
- # @return [nil]
290
- # @yieldparam component [self]
291
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/head
292
- register_element :head
293
-
294
- # @!method header(**attributes, &content)
295
- # Outputs a `<header>` tag.
296
- # @return [nil]
297
- # @yieldparam component [self]
298
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/header
299
- register_element :header
300
-
301
- # @!method hgroup(**attributes, &content)
302
- # Outputs an `<hgroup>` tag.
303
- # @return [nil]
304
- # @yieldparam component [self]
305
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/hgroup
306
- register_element :hgroup
307
-
308
- # @!method html(**attributes, &content)
309
- # Outputs an `<html>` tag.
310
- # @return [nil]
311
- # @yieldparam component [self]
312
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/html
313
- register_element :html
314
-
315
- # @!method i(**attributes, &content)
316
- # Outputs an `<i>` tag.
317
- # @return [nil]
318
- # @yieldparam component [self]
319
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/i
320
- register_element :i
321
-
322
- # @!method iframe(**attributes, &content)
323
- # Outputs an `<iframe>` tag.
324
- # @return [nil]
325
- # @yieldparam component [self]
326
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/iframe
327
- register_element :iframe
328
-
329
- # @!method ins(**attributes, &content)
330
- # Outputs an `<ins>` tag.
331
- # @return [nil]
332
- # @yieldparam component [self]
333
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/ins
334
- register_element :ins
335
-
336
- # @!method kbd(**attributes, &content)
337
- # Outputs a `<kbd>` tag.
338
- # @return [nil]
339
- # @yieldparam component [self]
340
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/kbd
341
- register_element :kbd
342
-
343
- # @!method label(**attributes, &content)
344
- # Outputs a `<label>` tag.
345
- # @return [nil]
346
- # @yieldparam component [self]
347
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/label
348
- register_element :label
349
-
350
- # @!method legend(**attributes, &content)
351
- # Outputs a `<legend>` tag.
352
- # @return [nil]
353
- # @yieldparam component [self]
354
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/legend
355
- register_element :legend
356
-
357
- # @!method li(**attributes, &content)
358
- # Outputs a `<li>` tag.
359
- # @return [nil]
360
- # @yieldparam component [self]
361
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/li
362
- register_element :li
363
-
364
- # @!method main(**attributes, &content)
365
- # Outputs a `<main>` tag.
366
- # @return [nil]
367
- # @yieldparam component [self]
368
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/main
369
- register_element :main
370
-
371
- # @!method map(**attributes, &content)
372
- # Outputs a `<map>` tag.
373
- # @return [nil]
374
- # @yieldparam component [self]
375
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/map
376
- register_element :map
377
-
378
- # @!method mark(**attributes, &content)
379
- # Outputs a `<mark>` tag.
380
- # @return [nil]
381
- # @yieldparam component [self]
382
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/mark
383
- register_element :mark
384
-
385
- # @!method menu(**attributes, &content)
386
- # Outputs a `<menu>` tag.
387
- # @return [nil]
388
- # @yieldparam component [self]
389
- # @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu
390
- register_element :menu
391
-
392
- # @!method meter(**attributes, &content)
393
- # Outputs a `<meter>` tag.
394
- # @return [nil]
395
- # @yieldparam component [self]
396
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/meter
397
- register_element :meter
398
-
399
- # @!method nav(**attributes, &content)
400
- # Outputs a `<nav>` tag.
401
- # @return [nil]
402
- # @yieldparam component [self]
403
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/nav
404
- register_element :nav
405
-
406
- # @!method noscript(**attributes, &content)
407
- # Outputs a `<noscript>` tag.
408
- # @return [nil]
409
- # @yieldparam component [self]
410
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/noscript
411
- register_element :noscript
412
-
413
- # @!method object(**attributes, &content)
414
- # Outputs an `<object>` tag.
415
- # @return [nil]
416
- # @yieldparam component [self]
417
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/object
418
- register_element :object
419
-
420
- # @!method ol(**attributes, &content)
421
- # Outputs an `<ol>` tag.
422
- # @return [nil]
423
- # @yieldparam component [self]
424
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/ol
425
- register_element :ol
426
-
427
- # @!method optgroup(**attributes, &content)
428
- # Outputs an `<optgroup>` tag.
429
- # @return [nil]
430
- # @yieldparam component [self]
431
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/optgroup
432
- register_element :optgroup
433
-
434
- # @!method option(**attributes, &content)
435
- # Outputs an `<option>` tag.
436
- # @return [nil]
437
- # @yieldparam component [self]
438
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/option
439
- register_element :option
440
-
441
- # @!method output(**attributes, &content)
442
- # Outputs an `<output>` tag.
443
- # @return [nil]
444
- # @yieldparam component [self]
445
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/output
446
- register_element :output
447
-
448
- # @!method p(**attributes, &content)
449
- # Outputs a `<p>` tag.
450
- # @return [nil]
451
- # @yieldparam component [self]
452
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/p
453
- register_element :p
454
-
455
- # @!method picture(**attributes, &content)
456
- # Outputs a `<picture>` tag.
457
- # @return [nil]
458
- # @yieldparam component [self]
459
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/picture
460
- register_element :picture
461
-
462
- # @!method portal(**attributes, &content)
463
- # Outputs a `<portal>` tag. (Experimental)
464
- # @return [nil]
465
- # @yieldparam component [self]
466
- # @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/portal
467
- register_element :portal
468
-
469
- # @!method pre(**attributes, &content)
470
- # Outputs a `<pre>` tag.
471
- # @return [nil]
472
- # @yieldparam component [self]
473
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/pre
474
- register_element :pre
475
-
476
- # @!method progress(**attributes, &content)
477
- # Outputs a `<progress>` tag.
478
- # @return [nil]
479
- # @yieldparam component [self]
480
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/progress
481
- register_element :progress
482
-
483
- # @!method q(**attributes, &content)
484
- # Outputs a `<q>` tag.
485
- # @return [nil]
486
- # @yieldparam component [self]
487
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/q
488
- register_element :q
489
-
490
- # @!method rp(**attributes, &content)
491
- # Outputs an `<rp>` tag.
492
- # @return [nil]
493
- # @yieldparam component [self]
494
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/rp
495
- register_element :rp
496
-
497
- # @!method rt(**attributes, &content)
498
- # Outputs an `<rt>` tag.
499
- # @return [nil]
500
- # @yieldparam component [self]
501
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/rt
502
- register_element :rt
503
-
504
- # @!method ruby(**attributes, &content)
505
- # Outputs a `<ruby>` tag. (The best tag ever!)
506
- # @return [nil]
507
- # @yieldparam component [self]
508
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/ruby
509
- register_element :ruby
510
-
511
- # @!method s(**attributes, &content)
512
- # Outputs an `<s>` tag.
513
- # @return [nil]
514
- # @yieldparam component [self]
515
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/s
516
- register_element :s
517
-
518
- # @!method samp(**attributes, &content)
519
- # Outputs a `<samp>` tag.
520
- # @return [nil]
521
- # @yieldparam component [self]
522
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/samp
523
- register_element :samp
524
-
525
- # @!method script(**attributes, &content)
526
- # Outputs a `<script>` tag.
527
- # @return [nil]
528
- # @yieldparam component [self]
529
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/script
530
- register_element :script
531
-
532
- # @!method search(**attributes, &content)
533
- # Outputs a `<search>` tag.
534
- # @return [nil]
535
- # @yieldparam component [self]
536
- # @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/search
537
- register_element :search
538
-
539
- # @!method section(**attributes, &content)
540
- # Outputs a `<section>` tag.
541
- # @return [nil]
542
- # @yieldparam component [self]
543
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/section
544
- register_element :section
545
-
546
- # @!method select(**attributes, &content)
547
- # Outputs a `<select>` tag.
548
- # @return [nil]
549
- # @yieldparam component [self]
550
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/select
551
- register_element :select
552
-
553
- # @!method slot(**attributes, &content)
554
- # Outputs a `<slot>` tag.
555
- # @return [nil]
556
- # @yieldparam component [self]
557
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/slot
558
- register_element :slot
559
-
560
- # @!method small(**attributes, &content)
561
- # Outputs a `<small>` tag.
562
- # @return [nil]
563
- # @yieldparam component [self]
564
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/small
565
- register_element :small
566
-
567
- # @!method span(**attributes, &content)
568
- # Outputs a `<span>` tag.
569
- # @return [nil]
570
- # @yieldparam component [self]
571
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/span
572
- register_element :span
573
-
574
- # @!method strong(**attributes, &content)
575
- # Outputs a `<strong>` tag.
576
- # @return [nil]
577
- # @yieldparam component [self]
578
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/strong
579
- register_element :strong
580
-
581
- # @!method style(**attributes, &content)
582
- # Outputs a `<style>` tag.
583
- # @return [nil]
584
- # @yieldparam component [self]
585
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/style
586
- register_element :style
587
-
588
- # @!method sub(**attributes, &content)
589
- # Outputs a `<sub>` tag.
590
- # @return [nil]
591
- # @yieldparam component [self]
592
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/sub
593
- register_element :sub
594
-
595
- # @!method summary(**attributes, &content)
596
- # Outputs a `<summary>` tag.
597
- # @return [nil]
598
- # @yieldparam component [self]
599
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/summary
600
- register_element :summary
601
-
602
- # @!method sup(**attributes, &content)
603
- # Outputs a `<sup>` tag.
604
- # @return [nil]
605
- # @yieldparam component [self]
606
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/sup
607
- register_element :sup
608
-
609
- # @!method svg(**attributes, &content)
610
- # Outputs an `<svg>` tag.
611
- # @return [nil]
612
- # @yieldparam component [self]
613
- # @see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/svg
614
- register_element :svg
615
-
616
- # @!method table(**attributes, &content)
617
- # Outputs a `<table>` tag.
618
- # @return [nil]
619
- # @yieldparam component [self]
620
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/table
621
- register_element :table
622
-
623
- # @!method tbody(**attributes, &content)
624
- # Outputs a `<tbody>` tag.
625
- # @return [nil]
626
- # @yieldparam component [self]
627
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/tbody
628
- register_element :tbody
629
-
630
- # @!method td(**attributes, &content)
631
- # Outputs a `<td>` tag.
632
- # @return [nil]
633
- # @yieldparam component [self]
634
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/td
635
- register_element :td
636
-
637
- # @!method template_tag(**attributes, &content)
638
- # Outputs a `<template>` tag.
639
- # @return [nil]
640
- # @yieldparam component [self]
641
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/template
642
- register_element :template
643
-
644
- # @!method textarea(**attributes, &content)
645
- # Outputs a `<textarea>` tag.
646
- # @return [nil]
647
- # @yieldparam component [self]
648
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/textarea
649
- register_element :textarea
650
-
651
- # @!method tfoot(**attributes, &content)
652
- # Outputs a `<tfoot>` tag.
653
- # @return [nil]
654
- # @yieldparam component [self]
655
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/tfoot
656
- register_element :tfoot
657
-
658
- # @!method th(**attributes, &content)
659
- # Outputs a `<th>` tag.
660
- # @return [nil]
661
- # @yieldparam component [self]
662
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/th
663
- register_element :th
664
-
665
- # @!method thead(**attributes, &content)
666
- # Outputs a `<thead>` tag.
667
- # @return [nil]
668
- # @yieldparam component [self]
669
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/thead
670
- register_element :thead
671
-
672
- # @!method time(**attributes, &content)
673
- # Outputs a `<time>` tag.
674
- # @return [nil]
675
- # @yieldparam component [self]
676
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/time
677
- register_element :time
678
-
679
- # @!method title(**attributes, &content)
680
- # Outputs a `<title>` tag.
681
- # @return [nil]
682
- # @yieldparam component [self]
683
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/title
684
- register_element :title
685
-
686
- # @!method tr(**attributes, &content)
687
- # Outputs a `<tr>` tag.
688
- # @return [nil]
689
- # @yieldparam component [self]
690
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/tr
691
- register_element :tr
692
-
693
- # @!method u(**attributes, &content)
694
- # Outputs a `<u>` tag.
695
- # @return [nil]
696
- # @yieldparam component [self]
697
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/u
698
- register_element :u
699
-
700
- # @!method ul(**attributes, &content)
701
- # Outputs a `<ul>` tag.
702
- # @return [nil]
703
- # @yieldparam component [self]
704
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/ul
705
- register_element :ul
706
-
707
- # @!method var(**attributes, &content)
708
- # Outputs a `<var>` tag.
709
- # @return [nil]
710
- # @yieldparam component [self]
711
- # @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/var
712
- register_element :var
713
-
714
- # @!method video(**attributes, &content)
715
- # Outputs a `<video>` tag.
716
- # @return [nil]
717
- # @yieldparam component [self]
718
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/video
719
- register_element :video
720
-
721
- # @!method wbr(**attributes, &content)
722
- # Outputs a `<wbr>` tag.
723
- # @return [nil]
724
- # @yieldparam component [self]
725
- # @see https://developer.mozilla.org/docs/Web/HTML/Element/wbr
726
- register_element :wbr
5
+ extend Phlex::SGML::Elements
6
+
7
+ # Outputs an `<a>` tag.
8
+ # The `<a>` element creates a hyperlink to web pages, files, email addresses, locations in the same page, or anything else a URL can address.
9
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/a
10
+ register_element def a(
11
+ class: nil,
12
+ href: nil,
13
+ id: nil,
14
+ rel: nil,
15
+ target: nil,
16
+ title: nil,
17
+ **attributes,
18
+ &content
19
+ ) = nil
20
+
21
+ # Outputs an `<abbr>` tag.
22
+ # The `<abbr>` element represents an abbreviation or acronym.
23
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/abbr
24
+ register_element def abbr(
25
+ class: nil,
26
+ id: nil,
27
+ title: nil,
28
+ **attributes,
29
+ &content
30
+ ) = nil
31
+
32
+ # Outputs an `<address>` tag.
33
+ # The `<address>` element indicates contact information for a person or organization.
34
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/address
35
+ register_element def address(
36
+ class: nil,
37
+ id: nil,
38
+ **attributes,
39
+ &content
40
+ ) = nil
41
+
42
+ # Outputs an `<article>` tag.
43
+ # The `<article>` element represents a self-contained composition in a document, page, application, or site.
44
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/article
45
+ register_element def article(
46
+ class: nil,
47
+ id: nil,
48
+ **attributes,
49
+ &content
50
+ ) = nil
51
+
52
+ # Outputs an `<aside>` tag.
53
+ # The `<aside>` element represents a section of a page that consists of content that is tangentially related to the content around the aside element.
54
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/aside
55
+ register_element def aside(
56
+ class: nil,
57
+ id: nil,
58
+ **attributes,
59
+ &content
60
+ ) = nil
61
+
62
+ # Outputs an `<audio>` tag.
63
+ # See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio
64
+ register_element def audio(
65
+ autoplay: nil,
66
+ class: nil,
67
+ controls: nil,
68
+ id: nil,
69
+ loop: nil,
70
+ src: nil,
71
+ **attributes,
72
+ &content
73
+ ) = nil
74
+
75
+ # Outputs a `<b>` tag.
76
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/b
77
+ register_element def b(
78
+ class: nil,
79
+ id: nil,
80
+ **attributes,
81
+ &content
82
+ ) = nil
83
+
84
+ # Outputs a `<bdi>` tag.
85
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/bdi
86
+ register_element def bdi(
87
+ class: nil,
88
+ id: nil,
89
+ **attributes,
90
+ &content
91
+ ) = nil
92
+
93
+ # Outputs a `<bdo>` tag.
94
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/bdo
95
+ register_element def bdo(
96
+ class: nil,
97
+ dir: nil,
98
+ id: nil,
99
+ **attributes,
100
+ &content
101
+ ) = nil
102
+
103
+ # Outputs a `<blockquote>` tag.
104
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/blockquote
105
+ register_element def blockquote(
106
+ cite: nil,
107
+ class: nil,
108
+ id: nil,
109
+ **attributes,
110
+ &content
111
+ ) = nil
112
+
113
+ # Outputs a `<body>` tag.
114
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/body
115
+ register_element def body(
116
+ class: nil,
117
+ id: nil,
118
+ **attributes,
119
+ &content
120
+ ) = nil
121
+
122
+ # Outputs a `<button>` tag.
123
+ # The `<button>` element is an interactive element activated by a user with a mouse, keyboard, finger, voice command, or other assistive technology to perform an action, such as submitting a form or opening a dialog.
124
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/button
125
+ register_element def button(
126
+ autofocus: nil,
127
+ class: nil,
128
+ disabled: nil,
129
+ form: nil,
130
+ formaction: nil,
131
+ formmethod: nil,
132
+ formtarget: nil,
133
+ formvalidate: nil,
134
+ id: nil,
135
+ name: nil,
136
+ popovertarget: nil,
137
+ popovertargetaction: nil,
138
+ type: nil,
139
+ value: nil,
140
+ **attributes,
141
+ &content
142
+ ) = nil
143
+
144
+ # Outputs a `<canvas>` tag.
145
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/canvas
146
+ register_element def canvas(
147
+ class: nil,
148
+ height: nil,
149
+ id: nil,
150
+ width: nil,
151
+ **attributes,
152
+ &content
153
+ ) = nil
154
+
155
+ # Outputs a `<caption>` tag.
156
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/caption
157
+ register_element def caption(
158
+ class: nil,
159
+ id: nil,
160
+ **attributes,
161
+ &content
162
+ ) = nil
163
+
164
+ # Outputs a `<cite>` tag.
165
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/cite
166
+ register_element def cite(
167
+ class: nil,
168
+ id: nil,
169
+ **attributes,
170
+ &content
171
+ ) = nil
172
+
173
+ # Outputs a `<code>` tag.
174
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/code
175
+ register_element def code(
176
+ class: nil,
177
+ id: nil,
178
+ **attributes,
179
+ &content
180
+ ) = nil
181
+
182
+ # Outputs a `<colgroup>` tag.
183
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/colgroup
184
+ register_element def colgroup(
185
+ class: nil,
186
+ id: nil,
187
+ span: nil,
188
+ **attributes,
189
+ &content
190
+ ) = nil
191
+
192
+ # Outputs a `<data>` tag.
193
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/data
194
+ register_element def data(
195
+ class: nil,
196
+ id: nil,
197
+ value: nil,
198
+ **attributes,
199
+ &content
200
+ ) = nil
201
+
202
+ # Outputs a `<datalist>` tag.
203
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/datalist
204
+ register_element def datalist(
205
+ class: nil,
206
+ id: nil,
207
+ **attributes,
208
+ &content
209
+ ) = nil
210
+
211
+ # Outputs a `<dd>` tag.
212
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/dd
213
+ register_element def dd(
214
+ class: nil,
215
+ id: nil,
216
+ **attributes,
217
+ &content
218
+ ) = nil
219
+
220
+ # Outputs a `<del>` tag.
221
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/del
222
+ register_element def del(
223
+ cite: nil,
224
+ class: nil,
225
+ datetime: nil,
226
+ id: nil,
227
+ **attributes,
228
+ &content
229
+ ) = nil
230
+
231
+ # Outputs a `<details>` tag.
232
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/details
233
+ register_element def details(
234
+ class: nil,
235
+ id: nil,
236
+ open: nil,
237
+ **attributes,
238
+ &content
239
+ ) = nil
240
+
241
+ # Outputs a `<dfn>` tag.
242
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/dfn
243
+ register_element def dfn(
244
+ class: nil,
245
+ id: nil,
246
+ title: nil,
247
+ **attributes,
248
+ &content
249
+ ) = nil
250
+
251
+ # Outputs a `<dialog>` tag.
252
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/dialog
253
+ register_element def dialog(
254
+ class: nil,
255
+ id: nil,
256
+ open: nil,
257
+ **attributes,
258
+ &content
259
+ ) = nil
260
+
261
+ # Outputs a `<div>` tag.
262
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/div
263
+ register_element def div(
264
+ class: nil,
265
+ id: nil,
266
+ **attributes,
267
+ &content
268
+ ) = nil
269
+
270
+ # Outputs a `<dl>` tag.
271
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/dl
272
+ register_element def dl(
273
+ class: nil,
274
+ id: nil,
275
+ **attributes,
276
+ &content
277
+ ) = nil
278
+
279
+ # Outputs a `<dt>` tag.
280
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/dt
281
+ register_element def dt(
282
+ class: nil,
283
+ id: nil,
284
+ **attributes,
285
+ &content
286
+ ) = nil
287
+
288
+ # Outputs an `<em>` tag.
289
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/em
290
+ register_element def em(
291
+ class: nil,
292
+ id: nil,
293
+ **attributes,
294
+ &content
295
+ ) = nil
296
+
297
+ # Outputs a `<fieldset>` tag.
298
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/fieldset
299
+ register_element def fieldset(
300
+ class: nil,
301
+ disabled: nil,
302
+ form: nil,
303
+ id: nil,
304
+ name: nil,
305
+ **attributes,
306
+ &content
307
+ ) = nil
308
+
309
+ # Outputs a `<figcaption>` tag.
310
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/figcaption
311
+ register_element def figcaption(
312
+ class: nil,
313
+ id: nil,
314
+ **attributes,
315
+ &content
316
+ ) = nil
317
+
318
+ # Outputs a `<figure>` tag.
319
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/figure
320
+ register_element def figure(
321
+ class: nil,
322
+ id: nil,
323
+ **attributes,
324
+ &content
325
+ ) = nil
326
+
327
+ # Outputs a `<footer>` tag.
328
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/footer
329
+ register_element def footer(
330
+ class: nil,
331
+ id: nil,
332
+ **attributes,
333
+ &content
334
+ ) = nil
335
+
336
+ # Outputs a `<form>` tag.
337
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/form
338
+ register_element def form(
339
+ action: nil,
340
+ class: nil,
341
+ enctype: nil,
342
+ id: nil,
343
+ method: nil,
344
+ **attributes,
345
+ &content
346
+ ) = nil
347
+
348
+ # Outputs an `<h1>` tag.
349
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/h1
350
+ register_element def h1(
351
+ class: nil,
352
+ id: nil,
353
+ **attributes,
354
+ &content
355
+ ) = nil
356
+
357
+ # Outputs an `<h2>` tag.
358
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/h2
359
+ register_element def h2(
360
+ class: nil,
361
+ id: nil,
362
+ **attributes,
363
+ &content
364
+ ) = nil
365
+
366
+ # Outputs an `<h3>` tag.
367
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/h3
368
+ register_element def h3(
369
+ class: nil,
370
+ id: nil,
371
+ **attributes,
372
+ &content
373
+ ) = nil
374
+
375
+ # Outputs an `<h4>` tag.
376
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/h4
377
+ register_element def h4(
378
+ class: nil,
379
+ id: nil,
380
+ **attributes,
381
+ &content
382
+ ) = nil
383
+
384
+ # Outputs an `<h5>` tag.
385
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/h5
386
+ register_element def h5(
387
+ class: nil,
388
+ id: nil,
389
+ **attributes,
390
+ &content
391
+ ) = nil
392
+
393
+ # Outputs an `<h6>` tag.
394
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/h6
395
+ register_element def h6(
396
+ class: nil,
397
+ id: nil,
398
+ **attributes,
399
+ &content
400
+ ) = nil
401
+
402
+ # Outputs a `<head>` tag.
403
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/head
404
+ register_element def head(
405
+ class: nil,
406
+ id: nil,
407
+ **attributes,
408
+ &content
409
+ ) = nil
410
+
411
+ # Outputs a `<header>` tag.
412
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/header
413
+ register_element def header(
414
+ class: nil,
415
+ id: nil,
416
+ **attributes,
417
+ &content
418
+ ) = nil
419
+
420
+ # Outputs an `<hgroup>` tag.
421
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/hgroup
422
+ register_element def hgroup(
423
+ class: nil,
424
+ id: nil,
425
+ **attributes,
426
+ &content
427
+ ) = nil
428
+
429
+ # Outputs an `<html>` tag.
430
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/html
431
+ register_element def html(
432
+ class: nil,
433
+ id: nil,
434
+ lang: nil,
435
+ **attributes,
436
+ &content
437
+ ) = nil
438
+
439
+ # Outputs an `<i>` tag.
440
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/i
441
+ register_element def i(
442
+ class: nil,
443
+ id: nil,
444
+ **attributes,
445
+ &content
446
+ ) = nil
447
+
448
+ # Outputs an `<iframe>` tag.
449
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/iframe
450
+ register_element def iframe(
451
+ class: nil,
452
+ height: nil,
453
+ id: nil,
454
+ name: nil,
455
+ src: nil,
456
+ srcdoc: nil,
457
+ width: nil,
458
+ **attributes,
459
+ &content
460
+ ) = nil
461
+
462
+ # Outputs an `<ins>` tag.
463
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/ins
464
+ register_element def ins(
465
+ cite: nil,
466
+ class: nil,
467
+ datetime: nil,
468
+ id: nil,
469
+ **attributes,
470
+ &content
471
+ ) = nil
472
+
473
+ # Outputs a `<kbd>` tag.
474
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/kbd
475
+ register_element def kbd(
476
+ class: nil,
477
+ id: nil,
478
+ **attributes,
479
+ &content
480
+ ) = nil
481
+
482
+ # Outputs a `<label>` tag.
483
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/label
484
+ register_element def label(
485
+ class: nil,
486
+ for: nil,
487
+ form: nil,
488
+ id: nil,
489
+ **attributes,
490
+ &content
491
+ ) = nil
492
+
493
+ # Outputs a `<legend>` tag.
494
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/legend
495
+ register_element def legend(
496
+ class: nil,
497
+ id: nil,
498
+ **attributes,
499
+ &content
500
+ ) = nil
501
+
502
+ # Outputs a `<li>` tag.
503
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/li
504
+ register_element def li(
505
+ class: nil,
506
+ id: nil,
507
+ value: nil,
508
+ **attributes,
509
+ &content
510
+ ) = nil
511
+
512
+ # Outputs a `<main>` tag.
513
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/main
514
+ register_element def main(
515
+ class: nil,
516
+ id: nil,
517
+ **attributes,
518
+ &content
519
+ ) = nil
520
+
521
+ # Outputs a `<map>` tag.
522
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/map
523
+ register_element def map(
524
+ class: nil,
525
+ id: nil,
526
+ name: nil,
527
+ **attributes,
528
+ &content
529
+ ) = nil
530
+
531
+ # Outputs a `<mark>` tag.
532
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/mark
533
+ register_element def mark(
534
+ class: nil,
535
+ id: nil,
536
+ **attributes,
537
+ &content
538
+ ) = nil
539
+
540
+ # Outputs a `<menu>` tag.
541
+ # See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu
542
+ register_element def menu(
543
+ class: nil,
544
+ id: nil,
545
+ type: nil,
546
+ **attributes,
547
+ &content
548
+ ) = nil
549
+
550
+ # Outputs a `<meter>` tag.
551
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/meter
552
+ register_element def meter(
553
+ class: nil,
554
+ high: nil,
555
+ id: nil,
556
+ low: nil,
557
+ max: nil,
558
+ min: nil,
559
+ optimum: nil,
560
+ value: nil,
561
+ **attributes,
562
+ &content
563
+ ) = nil
564
+
565
+ # Outputs a `<nav>` tag.
566
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/nav
567
+ register_element def nav(
568
+ class: nil,
569
+ id: nil,
570
+ **attributes,
571
+ &content
572
+ ) = nil
573
+
574
+ # Outputs a `<noscript>` tag.
575
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/noscript
576
+ register_element def noscript(
577
+ class: nil,
578
+ id: nil,
579
+ **attributes,
580
+ &content
581
+ ) = nil
582
+
583
+ # Outputs an `<object>` tag.
584
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/object
585
+ register_element def object(
586
+ class: nil,
587
+ data: nil,
588
+ height: nil,
589
+ id: nil,
590
+ type: nil,
591
+ width: nil,
592
+ **attributes,
593
+ &content
594
+ ) = nil
595
+
596
+ # Outputs an `<ol>` tag.
597
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/ol
598
+ register_element def ol(
599
+ class: nil,
600
+ id: nil,
601
+ reversed: nil,
602
+ start: nil,
603
+ type: nil,
604
+ **attributes,
605
+ &content
606
+ ) = nil
607
+
608
+ # Outputs an `<optgroup>` tag.
609
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/optgroup
610
+ register_element def optgroup(
611
+ class: nil,
612
+ disabled: nil,
613
+ id: nil,
614
+ label: nil,
615
+ **attributes,
616
+ &content
617
+ ) = nil
618
+
619
+ # Outputs an `<option>` tag.
620
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/option
621
+ register_element def option(
622
+ class: nil,
623
+ disabled: nil,
624
+ id: nil,
625
+ selected: nil,
626
+ value: nil,
627
+ **attributes,
628
+ &content
629
+ ) = nil
630
+
631
+ # Outputs an `<output>` tag.
632
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/output
633
+ register_element def output(
634
+ class: nil,
635
+ for: nil,
636
+ form: nil,
637
+ id: nil,
638
+ name: nil,
639
+ **attributes,
640
+ &content
641
+ ) = nil
642
+
643
+ # Outputs a `<p>` tag.
644
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/p
645
+ register_element def p(
646
+ class: nil,
647
+ id: nil,
648
+ **attributes,
649
+ &content
650
+ ) = nil
651
+
652
+ # Outputs a `<picture>` tag.
653
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/picture
654
+ register_element def picture(
655
+ class: nil,
656
+ id: nil,
657
+ **attributes,
658
+ &content
659
+ ) = nil
660
+
661
+ # Outputs a `<portal>` tag. (Experimental)
662
+ # See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/portal
663
+ register_element def portal(
664
+ class: nil,
665
+ id: nil,
666
+ src: nil,
667
+ **attributes,
668
+ &content
669
+ ) = nil
670
+
671
+ # Outputs a `<pre>` tag.
672
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/pre
673
+ register_element def pre(
674
+ class: nil,
675
+ id: nil,
676
+ **attributes,
677
+ &content
678
+ ) = nil
679
+
680
+ # Outputs a `<progress>` tag.
681
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/progress
682
+ register_element def progress(
683
+ class: nil,
684
+ id: nil,
685
+ max: nil,
686
+ value: nil,
687
+ **attributes,
688
+ &content
689
+ ) = nil
690
+
691
+ # Outputs a `<q>` tag.
692
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/q
693
+ register_element def q(
694
+ cite: nil,
695
+ class: nil,
696
+ id: nil,
697
+ **attributes,
698
+ &content
699
+ ) = nil
700
+
701
+ # Outputs an `<rp>` tag.
702
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/rp
703
+ register_element def rp(
704
+ class: nil,
705
+ id: nil,
706
+ **attributes,
707
+ &content
708
+ ) = nil
709
+
710
+ # Outputs an `<rt>` tag.
711
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/rt
712
+ register_element def rt(
713
+ class: nil,
714
+ id: nil,
715
+ **attributes,
716
+ &content
717
+ ) = nil
718
+
719
+ # Outputs a `<ruby>` tag. (The best tag ever!)
720
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/ruby
721
+ register_element def ruby(
722
+ class: nil,
723
+ id: nil,
724
+ **attributes,
725
+ &content
726
+ ) = nil
727
+
728
+ # Outputs an `<s>` tag.
729
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/s
730
+ register_element def s(
731
+ class: nil,
732
+ id: nil,
733
+ **attributes,
734
+ &content
735
+ ) = nil
736
+
737
+ # Outputs a `<samp>` tag.
738
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/samp
739
+ register_element def samp(
740
+ class: nil,
741
+ id: nil,
742
+ **attributes,
743
+ &content
744
+ ) = nil
745
+
746
+ # Outputs a `<script>` tag.
747
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/script
748
+ register_element def script(
749
+ async: nil,
750
+ class: nil,
751
+ defer: nil,
752
+ id: nil,
753
+ src: nil,
754
+ type: nil,
755
+ **attributes,
756
+ &content
757
+ ) = nil
758
+
759
+ # Outputs a `<search>` tag.
760
+ # See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/search
761
+ register_element def search(
762
+ class: nil,
763
+ id: nil,
764
+ **attributes,
765
+ &content
766
+ ) = nil
767
+
768
+ # Outputs a `<section>` tag.
769
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/section
770
+ register_element def section(
771
+ class: nil,
772
+ id: nil,
773
+ **attributes,
774
+ &content
775
+ ) = nil
776
+
777
+ # Outputs a `<select>` tag.
778
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/select
779
+ register_element def select(
780
+ class: nil,
781
+ id: nil,
782
+ multiple: nil,
783
+ name: nil,
784
+ size: nil,
785
+ **attributes,
786
+ &content
787
+ ) = nil
788
+
789
+ # Outputs a `<slot>` tag.
790
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/slot
791
+ register_element def slot(
792
+ class: nil,
793
+ id: nil,
794
+ name: nil,
795
+ **attributes,
796
+ &content
797
+ ) = nil
798
+
799
+ # Outputs a `<small>` tag.
800
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/small
801
+ register_element def small(
802
+ class: nil,
803
+ id: nil,
804
+ **attributes,
805
+ &content
806
+ ) = nil
807
+
808
+ # Outputs a `<span>` tag.
809
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/span
810
+ register_element def span(
811
+ class: nil,
812
+ id: nil,
813
+ **attributes,
814
+ &content
815
+ ) = nil
816
+
817
+ # Outputs a `<strong>` tag.
818
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/strong
819
+ register_element def strong(
820
+ class: nil,
821
+ id: nil,
822
+ **attributes,
823
+ &content
824
+ ) = nil
825
+
826
+ # Outputs a `<style>` tag.
827
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/style
828
+ register_element def style(
829
+ class: nil,
830
+ id: nil,
831
+ media: nil,
832
+ type: nil,
833
+ **attributes,
834
+ &content
835
+ ) = nil
836
+
837
+ # Outputs a `<sub>` tag.
838
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/sub
839
+ register_element def sub(
840
+ class: nil,
841
+ id: nil,
842
+ **attributes,
843
+ &content
844
+ ) = nil
845
+
846
+ # Outputs a `<summary>` tag.
847
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/summary
848
+ register_element def summary(
849
+ class: nil,
850
+ id: nil,
851
+ **attributes,
852
+ &content
853
+ ) = nil
854
+
855
+ # Outputs a `<sup>` tag.
856
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/sup
857
+ register_element def sup(
858
+ class: nil,
859
+ id: nil,
860
+ **attributes,
861
+ &content
862
+ ) = nil
863
+
864
+ # Outputs an `<svg>` tag.
865
+ # See https://developer.mozilla.org/en-US/docs/Web/SVG/Element/svg
866
+ register_element def svg(
867
+ class: nil,
868
+ height: nil,
869
+ id: nil,
870
+ viewBox: nil,
871
+ width: nil,
872
+ **attributes,
873
+ &content
874
+ ) = nil
875
+
876
+ # Outputs a `<table>` tag.
877
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/table
878
+ register_element def table(
879
+ class: nil,
880
+ id: nil,
881
+ **attributes,
882
+ &content
883
+ ) = nil
884
+
885
+ # Outputs a `<tbody>` tag.
886
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/tbody
887
+ register_element def tbody(
888
+ class: nil,
889
+ id: nil,
890
+ **attributes,
891
+ &content
892
+ ) = nil
893
+
894
+ # Outputs a `<td>` tag.
895
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/td
896
+ register_element def td(
897
+ class: nil,
898
+ colspan: nil,
899
+ headers: nil,
900
+ id: nil,
901
+ rowspan: nil,
902
+ **attributes,
903
+ &content
904
+ ) = nil
905
+
906
+ # Outputs a `<template>` tag.
907
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/template
908
+ register_element def template(
909
+ class: nil,
910
+ id: nil,
911
+ **attributes,
912
+ &content
913
+ ) = nil
914
+
915
+ # Outputs a `<textarea>` tag.
916
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/textarea
917
+ register_element def textarea(
918
+ class: nil,
919
+ cols: nil,
920
+ disabled: nil,
921
+ id: nil,
922
+ name: nil,
923
+ readonly: nil,
924
+ rows: nil,
925
+ **attributes,
926
+ &content
927
+ ) = nil
928
+
929
+ # Outputs a `<tfoot>` tag.
930
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/tfoot
931
+ register_element def tfoot(
932
+ class: nil,
933
+ id: nil,
934
+ **attributes,
935
+ &content
936
+ ) = nil
937
+
938
+ # Outputs a `<th>` tag.
939
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/th
940
+ register_element def th(
941
+ class: nil,
942
+ colspan: nil,
943
+ headers: nil,
944
+ id: nil,
945
+ rowspan: nil,
946
+ scope: nil,
947
+ **attributes,
948
+ &content
949
+ ) = nil
950
+
951
+ # Outputs a `<thead>` tag.
952
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/thead
953
+ register_element def thead(
954
+ class: nil,
955
+ id: nil,
956
+ **attributes,
957
+ &content
958
+ ) = nil
959
+
960
+ # Outputs a `<time>` tag.
961
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/time
962
+ register_element def time(
963
+ class: nil,
964
+ datetime: nil,
965
+ id: nil,
966
+ **attributes,
967
+ &content
968
+ ) = nil
969
+
970
+ # Outputs a `<title>` tag.
971
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/title
972
+ register_element def title(
973
+ class: nil,
974
+ id: nil,
975
+ **attributes,
976
+ &content
977
+ ) = nil
978
+
979
+ # Outputs a `<tr>` tag.
980
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/tr
981
+ register_element def tr(
982
+ class: nil,
983
+ id: nil,
984
+ **attributes,
985
+ &content
986
+ ) = nil
987
+
988
+ # Outputs a `<u>` tag.
989
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/u
990
+ register_element def u(
991
+ class: nil,
992
+ id: nil,
993
+ **attributes,
994
+ &content
995
+ ) = nil
996
+
997
+ # Outputs a `<ul>` tag.
998
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/ul
999
+ register_element def ul(
1000
+ class: nil,
1001
+ id: nil,
1002
+ **attributes,
1003
+ &content
1004
+ ) = nil
1005
+
1006
+ # Outputs a `<var>` tag.
1007
+ # See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/var
1008
+ register_element def var(
1009
+ class: nil,
1010
+ id: nil,
1011
+ **attributes,
1012
+ &content
1013
+ ) = nil
1014
+
1015
+ # Outputs a `<video>` tag.
1016
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/video
1017
+ register_element def video(
1018
+ autoplay: nil,
1019
+ class: nil,
1020
+ controls: nil,
1021
+ height: nil,
1022
+ id: nil,
1023
+ loop: nil,
1024
+ src: nil,
1025
+ width: nil,
1026
+ **attributes,
1027
+ &content
1028
+ ) = nil
1029
+
1030
+ # Outputs a `<wbr>` tag.
1031
+ # See https://developer.mozilla.org/docs/Web/HTML/Element/wbr
1032
+ register_element def wbr(
1033
+ class: nil,
1034
+ id: nil,
1035
+ **attributes,
1036
+ &content
1037
+ ) = nil
727
1038
  end