phlex 2.0.0.beta2 → 2.0.0.rc2

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