Debian Codegraph @

src/Lucid/Html5.hs

raw symbols SCIP
1 {-# LANGUAGE OverloadedStrings #-}
2 {-# LANGUAGE NoMonomorphismRestriction #-}
3 {-# OPTIONS -fno-warn-type-defaults #-}
4
5 -- | Html5 terms.
6
7 module Lucid.Html5 where
8
9 import Lucid.Base
10
11 import Data.Monoid
12 import Data.Text (Text, unwords)
13
14 -------------------------------------------------------------------------------
15 -- Elements
16
17 -- | @DOCTYPE@ element
18 --
19 -- This is implemented as "raw output", because the doctype doesn't
20 -- accept attributes, such as those inserted via 'with'.
21 --
22 doctype_ :: Applicative m => HtmlT m ()
23 doctype_ = HtmlT (pure (const "<!DOCTYPE HTML>", ()))
24
25 -- | @DOCTYPE@ element + @html@ element
26 doctypehtml_ :: Applicative m => HtmlT m a -> HtmlT m a
27 doctypehtml_ m = doctype_ *> html_ m
28
29 -- | @a@ element
30 a_ :: Term arg result => arg -> result
31 a_ = term "a"
32
33 -- | @abbr@ element
34 abbr_ :: Term arg result => arg -> result
35 abbr_ = term "abbr"
36
37 -- | @address@ element
38 address_ :: Term arg result => arg -> result
39 address_ = term "address"
40
41 -- | @area@ element
42 area_ :: Applicative m => [Attribute] -> HtmlT m ()
43 area_ = with (makeElementNoEnd "area")
44
45 -- | @article@ element
46 article_ :: Term arg result => arg -> result
47 article_ = term "article"
48
49 -- | @aside@ element
50 aside_ :: Term arg result => arg -> result
51 aside_ = term "aside"
52
53 -- | @audio@ element
54 audio_ :: Term arg result => arg -> result
55 audio_ = term "audio"
56
57 -- | @b@ element
58 b_ :: Term arg result => arg -> result
59 b_ = term "b"
60
61 -- | @base@ element
62 base_ :: Applicative m => [Attribute] -> HtmlT m ()
63 base_ = with (makeElementNoEnd "base")
64
65 -- | @bdo@ element
66 bdo_ :: Term arg result => arg -> result
67 bdo_ = term "bdo"
68
69 -- | @blockquote@ element
70 blockquote_ :: Term arg result => arg -> result
71 blockquote_ = term "blockquote"
72
73 -- | @body@ element
74 body_ :: Term arg result => arg -> result
75 body_ = term "body"
76
77 -- | @br@ element
78 br_ :: Applicative m => [Attribute] -> HtmlT m ()
79 br_ = with (makeElementNoEnd "br")
80
81 -- | @button@ element
82 button_ :: Term arg result => arg -> result
83 button_ = term "button"
84
85 -- | @canvas@ element
86 canvas_ :: Term arg result => arg -> result
87 canvas_ = term "canvas"
88
89 -- | @caption@ element
90 caption_ :: Term arg result => arg -> result
91 caption_ = term "caption"
92
93 -- | @cite@ element or @cite@ attribute.
94 cite_ :: Term arg result => arg -> result
95 cite_ = term "cite"
96
97 -- | @code@ element
98 code_ :: Term arg result => arg -> result
99 code_ = term "code"
100
101 -- | @col@ element
102 col_ :: Applicative m => [Attribute] -> HtmlT m ()
103 col_ = with (makeElementNoEnd "col")
104
105 -- | @colgroup@ element
106 colgroup_ :: Term arg result => arg -> result
107 colgroup_ = term "colgroup"
108
109 -- | @command@ element
110 command_ :: Term arg result => arg -> result
111 command_ = term "command"
112
113 -- | @datalist@ element
114 datalist_ :: Term arg result => arg -> result
115 datalist_ = term "datalist"
116
117 -- | @dd@ element
118 dd_ :: Term arg result => arg -> result
119 dd_ = term "dd"
120
121 -- | @del@ element
122 del_ :: Term arg result => arg -> result
123 del_ = term "del"
124
125 -- | @details@ element
126 details_ :: Term arg result => arg -> result
127 details_ = term "details"
128
129 -- | @dfn@ element
130 dfn_ :: Term arg result => arg -> result
131 dfn_ = term "dfn"
132
133 -- | @div@ element
134 div_ :: Term arg result => arg -> result
135 div_ = term "div"
136
137 -- | @dl@ element
138 dl_ :: Term arg result => arg -> result
139 dl_ = term "dl"
140
141 -- | @dt@ element
142 dt_ :: Term arg result => arg -> result
143 dt_ = term "dt"
144
145 -- | @em@ element
146 em_ :: Term arg result => arg -> result
147 em_ = term "em"
148
149 -- | @embed@ element
150 embed_ :: Applicative m => [Attribute] -> HtmlT m ()
151 embed_ = with (makeElementNoEnd "embed")
152
153 -- | @fieldset@ element
154 fieldset_ :: Term arg result => arg -> result
155 fieldset_ = term "fieldset"
156
157 -- | @figcaption@ element
158 figcaption_ :: Term arg result => arg -> result
159 figcaption_ = term "figcaption"
160
161 -- | @figure@ element
162 figure_ :: Term arg result => arg -> result
163 figure_ = term "figure"
164
165 -- | @footer@ element
166 footer_ :: Term arg result => arg -> result
167 footer_ = term "footer"
168
169 -- | @form@ element or @form@ attribute
170 form_ :: Term arg result => arg -> result
171 form_ = term "form"
172
173 -- | @h1@ element
174 h1_ :: Term arg result => arg -> result
175 h1_ = term "h1"
176
177 -- | @h2@ element
178 h2_ :: Term arg result => arg -> result
179 h2_ = term "h2"
180
181 -- | @h3@ element
182 h3_ :: Term arg result => arg -> result
183 h3_ = term "h3"
184
185 -- | @h4@ element
186 h4_ :: Term arg result => arg -> result
187 h4_ = term "h4"
188
189 -- | @h5@ element
190 h5_ :: Term arg result => arg -> result
191 h5_ = term "h5"
192
193 -- | @h6@ element
194 h6_ :: Term arg result => arg -> result
195 h6_ = term "h6"
196
197 -- | @head@ element
198 head_ :: Term arg result => arg -> result
199 head_ = term "head"
200
201 -- | @header@ element
202 header_ :: Term arg result => arg -> result
203 header_ = term "header"
204
205 -- | @hgroup@ element
206 hgroup_ :: Term arg result => arg -> result
207 hgroup_ = term "hgroup"
208
209 -- | @hr@ element
210 hr_ :: Applicative m => [Attribute] -> HtmlT m ()
211 hr_ = with (makeElementNoEnd "hr")
212
213 -- | @html@ element
214 html_ :: Term arg result => arg -> result
215 html_ = term "html"
216
217 -- | @i@ element
218 i_ :: Term arg result => arg -> result
219 i_ = term "i"
220
221 -- | @iframe@ element
222 iframe_ :: Term arg result => arg -> result
223 iframe_ = term "iframe"
224
225 -- | @img@ element
226 img_ :: Applicative m => [Attribute] -> HtmlT m ()
227 img_ = with (makeElementNoEnd "img")
228
229 -- | @input@ element
230 input_ :: Applicative m => [Attribute] -> HtmlT m ()
231 input_ = with (makeElementNoEnd "input")
232
233 -- | @ins@ element
234 ins_ :: Term arg result => arg -> result
235 ins_ = term "ins"
236
237 -- | @kbd@ element
238 kbd_ :: Term arg result => arg -> result
239 kbd_ = term "kbd"
240
241 -- | @keygen@ element
242 keygen_ :: Applicative m => [Attribute] -> HtmlT m ()
243 keygen_ = with (makeElementNoEnd "keygen")
244
245 -- | @label@ element or @label@ attribute
246 label_ :: Term arg result => arg -> result
247 label_ = term "label"
248
249 -- | @legend@ element
250 legend_ :: Term arg result => arg -> result
251 legend_ = term "legend"
252
253 -- | @li@ element
254 li_ :: Term arg result => arg -> result
255 li_ = term "li"
256
257 -- | @link@ element
258 link_ :: Applicative m => [Attribute] -> HtmlT m ()
259 link_ = with (makeElementNoEnd "link")
260
261 -- | @map@ element
262 map_ :: Term arg result => arg -> result
263 map_ = term "map"
264
265 -- | @main@ element
266 main_ :: Term arg result => arg -> result
267 main_ = term "main"
268
269 -- | @mark@ element
270 mark_ :: Term arg result => arg -> result
271 mark_ = term "mark"
272
273 -- | @menu@ element
274 menu_ :: Term arg result => arg -> result
275 menu_ = term "menu"
276
277 -- | @menuitem@ element
278 menuitem_ :: Applicative m => [Attribute] -> HtmlT m ()
279 menuitem_ = with (makeElementNoEnd "menuitem")
280
281 -- | @meta@ element
282 meta_ :: Applicative m => [Attribute] -> HtmlT m ()
283 meta_ = with (makeElementNoEnd "meta")
284
285 -- | @meter@ element
286 meter_ :: Term arg result => arg -> result
287 meter_ = term "meter"
288
289 -- | @nav@ element
290 nav_ :: Term arg result => arg -> result
291 nav_ = term "nav"
292
293 -- | @noscript@ element
294 noscript_ :: Term arg result => arg -> result
295 noscript_ = term "noscript"
296
297 -- | @object@ element
298 object_ :: Term arg result => arg -> result
299 object_ = term "object"
300
301 -- | @ol@ element
302 ol_ :: Term arg result => arg -> result
303 ol_ = term "ol"
304
305 -- | @optgroup@ element
306 optgroup_ :: Term arg result => arg -> result
307 optgroup_ = term "optgroup"
308
309 -- | @option@ element
310 option_ :: Term arg result => arg -> result
311 option_ = term "option"
312
313 -- | @output@ element
314 output_ :: Term arg result => arg -> result
315 output_ = term "output"
316
317 -- | @p@ element
318 p_ :: Term arg result => arg -> result
319 p_ = term "p"
320
321 -- | @param@ element
322 param_ :: Applicative m => [Attribute] -> HtmlT m ()
323 param_ = with (makeElementNoEnd "param")
324
325 -- | The @svg@ attribute.
326 svg_ :: Term arg result => arg -> result
327 svg_ = term "svg"
328
329 -- | @pre@ element
330 pre_ :: Term arg result => arg -> result
331 pre_ = term "pre"
332
333 -- | @progress@ element
334 progress_ :: Term arg result => arg -> result
335 progress_ = term "progress"
336
337 -- | @q@ element
338 q_ :: Term arg result => arg -> result
339 q_ = term "q"
340
341 -- | @rp@ element
342 rp_ :: Term arg result => arg -> result
343 rp_ = term "rp"
344
345 -- | @rt@ element
346 rt_ :: Term arg result => arg -> result
347 rt_ = term "rt"
348
349 -- | @ruby@ element
350 ruby_ :: Term arg result => arg -> result
351 ruby_ = term "ruby"
352
353 -- | @samp@ element
354 samp_ :: Term arg result => arg -> result
355 samp_ = term "samp"
356
357 -- | @script@ element
358 script_ :: TermRaw arg result => arg -> result
359 script_ = termRaw "script"
360
361 -- | @section@ element
362 section_ :: Term arg result => arg -> result
363 section_ = term "section"
364
365 -- | @select@ element
366 select_ :: Term arg result => arg -> result
367 select_ = term "select"
368
369 -- | @small@ element
370 small_ :: Term arg result => arg -> result
371 small_ = term "small"
372
373 -- | @source@ element
374 source_ :: Applicative m => [Attribute] -> HtmlT m ()
375 source_ = with (makeElementNoEnd "source")
376
377 -- | @span@ element or @span@ attribute
378 span_ :: Term arg result => arg -> result
379 span_ = term "span"
380
381 -- | @strong@ element
382 strong_ :: Term arg result => arg -> result
383 strong_ = term "strong"
384
385 -- | @style@ element or @style@ attribute
386 style_ :: TermRaw arg result => arg -> result
387 style_ = termRaw "style"
388
389 -- | @sub@ element
390 sub_ :: Term arg result => arg -> result
391 sub_ = term "sub"
392
393 -- | @summary@ element or @summary@ attribute
394 summary_ :: Term arg result => arg -> result
395 summary_ = term "summary"
396
397 -- | @sup@ element
398 sup_ :: Term arg result => arg -> result
399 sup_ = term "sup"
400
401 -- | @table@ element
402 table_ :: Term arg result => arg -> result
403 table_ = term "table"
404
405 -- | @tbody@ element
406 tbody_ :: Term arg result => arg -> result
407 tbody_ = term "tbody"
408
409 -- | @td@ element
410 td_ :: Term arg result => arg -> result
411 td_ = term "td"
412
413 -- | @textarea@ element
414 textarea_ :: Term arg result => arg -> result
415 textarea_ = term "textarea"
416
417 -- | @tfoot@ element
418 tfoot_ :: Term arg result => arg -> result
419 tfoot_ = term "tfoot"
420
421 -- | @th@ element
422 th_ :: Term arg result => arg -> result
423 th_ = term "th"
424
425 -- | @template@ element
426 template_ :: Term arg result => arg -> result
427 template_ = term "template"
428
429 -- | @thead@ element
430 thead_ :: Term arg result => arg -> result
431 thead_ = term "thead"
432
433 -- | @time@ element
434 time_ :: Term arg result => arg -> result
435 time_ = term "time"
436
437 -- | @title@ element or @title@ attribute
438 title_ :: Term arg result => arg -> result
439 title_ = term "title"
440
441 -- | @tr@ element
442 tr_ :: Term arg result => arg -> result
443 tr_ = term "tr"
444
445 -- | @track@ element
446 track_ :: Applicative m => [Attribute] -> HtmlT m ()
447 track_ = with (makeElementNoEnd "track")
448
449 -- | @ul@ element
450 ul_ :: Term arg result => arg -> result
451 ul_ = term "ul"
452
453 -- | @var@ element
454 var_ :: Term arg result => arg -> result
455 var_ = term "var"
456
457 -- | @video@ element
458 video_ :: Term arg result => arg -> result
459 video_ = term "video"
460
461 -- | @wbr@ element
462 wbr_ :: Applicative m => [Attribute] -> HtmlT m ()
463 wbr_ = with (makeElementNoEnd "wbr")
464
465 -------------------------------------------------------------------------------
466 -- Attributes
467
468 -- | The @accept@ attribute.
469 accept_ :: Text -> Attribute
470 accept_ = makeAttribute "accept"
471
472 -- | The @acceptCharset@ attribute.
473 acceptCharset_ :: Text -> Attribute
474 acceptCharset_ = makeAttribute "accept-charset"
475
476 -- | The @accesskey@ attribute.
477 accesskey_ :: Text -> Attribute
478 accesskey_ = makeAttribute "accesskey"
479
480 -- | The @action@ attribute.
481 action_ :: Text -> Attribute
482 action_ = makeAttribute "action"
483
484 -- | The @alt@ attribute.
485 alt_ :: Text -> Attribute
486 alt_ = makeAttribute "alt"
487
488 -- | The @async@ attribute.
489 async_ :: Text -> Attribute
490 async_ = makeAttribute "async"
491
492 -- | The @autocomplete@ attribute.
493 autocomplete_ :: Text -> Attribute
494 autocomplete_ = makeAttribute "autocomplete"
495
496 -- | The @autofocus@ attribute.
497 autofocus_ :: Attribute
498 autofocus_ = makeAttribute "autofocus" mempty
499
500 -- | The @autoplay@ attribute.
501 autoplay_ :: Text -> Attribute
502 autoplay_ = makeAttribute "autoplay"
503
504 -- | The @challenge@ attribute.
505 challenge_ :: Text -> Attribute
506 challenge_ = makeAttribute "challenge"
507
508 -- | The @charset@ attribute.
509 charset_ :: Text -> Attribute
510 charset_ = makeAttribute "charset"
511
512 -- | The @checked@ attribute.
513 checked_ :: Attribute
514 checked_ = makeAttribute "checked" mempty
515
516 -- | The @class@ attribute.
517 class_ :: Text -> Attribute
518 class_ = makeAttribute "class"
519
520 -- | Smart constructor for @class@ attribute.
521 --
522 -- @since 2.9.8
523 classes_ :: [Text] -> Attribute
524 classes_ = makeAttribute "class" . Data.Text.unwords
525
526 -- | The @cols@ attribute.
527 cols_ :: Text -> Attribute
528 cols_ = makeAttribute "cols"
529
530 -- | The @colspan@ attribute.
531 colspan_ :: Text -> Attribute
532 colspan_ = makeAttribute "colspan"
533
534 -- | The @content@ attribute.
535 content_ :: Text -> Attribute
536 content_ = makeAttribute "content"
537
538 -- | The @contenteditable@ attribute.
539 contenteditable_ :: Text -> Attribute
540 contenteditable_ = makeAttribute "contenteditable"
541
542 -- | The @contextmenu@ attribute.
543 contextmenu_ :: Text -> Attribute
544 contextmenu_ = makeAttribute "contextmenu"
545
546 -- | The @controls@ attribute.
547 controls_ :: Text -> Attribute
548 controls_ = makeAttribute "controls"
549
550 -- | The @coords@ attribute.
551 coords_ :: Text -> Attribute
552 coords_ = makeAttribute "coords"
553
554 -- | The @crossorigin@ attribute.
555 --
556 -- @since 2.9.8
557 crossorigin_ :: Text -> Attribute
558 crossorigin_ = makeAttribute "crossorigin"
559
560 -- | The @data@ attribute.
561 data_ :: Text -> Text -> Attribute
562 data_ name = makeAttribute ("data-" <> name)
563
564 -- | The @datetime@ attribute.
565 datetime_ :: Text -> Attribute
566 datetime_ = makeAttribute "datetime"
567
568 -- | The @defer@ attribute.
569 defer_ :: Text -> Attribute
570 defer_ = makeAttribute "defer"
571
572 -- | The @dir@ attribute.
573 dir_ :: Text -> Attribute
574 dir_ = makeAttribute "dir"
575
576 -- | The @disabled@ attribute.
577 disabled_ :: Text -> Attribute
578 disabled_ = makeAttribute "disabled"
579
580 -- | The @download@ attribute.
581 download_ :: Text -> Attribute
582 download_ = makeAttribute "download"
583
584 -- | The @draggable@ attribute.
585 draggable_ :: Text -> Attribute
586 draggable_ = makeAttribute "draggable"
587
588 -- | The @enctype@ attribute.
589 enctype_ :: Text -> Attribute
590 enctype_ = makeAttribute "enctype"
591
592 -- | The @for@ attribute.
593 for_ :: Text -> Attribute
594 for_ = makeAttribute "for"
595
596 -- | The @formaction@ attribute.
597 formaction_ :: Text -> Attribute
598 formaction_ = makeAttribute "formaction"
599
600 -- | The @formenctype@ attribute.
601 formenctype_ :: Text -> Attribute
602 formenctype_ = makeAttribute "formenctype"
603
604 -- | The @formmethod@ attribute.
605 formmethod_ :: Text -> Attribute
606 formmethod_ = makeAttribute "formmethod"
607
608 -- | The @formnovalidate@ attribute.
609 formnovalidate_ :: Text -> Attribute
610 formnovalidate_ = makeAttribute "formnovalidate"
611
612 -- | The @formtarget@ attribute.
613 formtarget_ :: Text -> Attribute
614 formtarget_ = makeAttribute "formtarget"
615
616 -- | The @headers@ attribute.
617 headers_ :: Text -> Attribute
618 headers_ = makeAttribute "headers"
619
620 -- | The @height@ attribute.
621 height_ :: Text -> Attribute
622 height_ = makeAttribute "height"
623
624 -- | The @hidden@ attribute.
625 hidden_ :: Text -> Attribute
626 hidden_ = makeAttribute "hidden"
627
628 -- | The @high@ attribute.
629 high_ :: Text -> Attribute
630 high_ = makeAttribute "high"
631
632 -- | The @href@ attribute.
633 href_ :: Text -> Attribute
634 href_ = makeAttribute "href"
635
636 -- | The @hreflang@ attribute.
637 hreflang_ :: Text -> Attribute
638 hreflang_ = makeAttribute "hreflang"
639
640 -- | The @httpEquiv@ attribute.
641 httpEquiv_ :: Text -> Attribute
642 httpEquiv_ = makeAttribute "http-equiv"
643
644 -- | The @icon@ attribute.
645 icon_ :: Text -> Attribute
646 icon_ = makeAttribute "icon"
647
648 -- | The @id@ attribute.
649 id_ :: Text -> Attribute
650 id_ = makeAttribute "id"
651
652 -- | The @integrity@ attribute.
653 --
654 -- @since 2.9.8
655 integrity_ :: Text -> Attribute
656 integrity_ = makeAttribute "integrity"
657
658 -- | The @ismap@ attribute.
659 ismap_ :: Text -> Attribute
660 ismap_ = makeAttribute "ismap"
661
662 -- | The @item@ attribute.
663 item_ :: Text -> Attribute
664 item_ = makeAttribute "item"
665
666 -- | The @itemprop@ attribute.
667 itemprop_ :: Text -> Attribute
668 itemprop_ = makeAttribute "itemprop"
669
670 -- | The @keytype@ attribute.
671 keytype_ :: Text -> Attribute
672 keytype_ = makeAttribute "keytype"
673
674 -- | The @lang@ attribute.
675 lang_ :: Text -> Attribute
676 lang_ = makeAttribute "lang"
677
678 -- | The @list@ attribute.
679 list_ :: Text -> Attribute
680 list_ = makeAttribute "list"
681
682 -- | The @loading@ attribute.
683 loading_ :: Text -> Attribute
684 loading_ = makeAttribute "loading"
685
686 -- | The @loop@ attribute.
687 loop_ :: Text -> Attribute
688 loop_ = makeAttribute "loop"
689
690 -- | The @low@ attribute.
691 low_ :: Text -> Attribute
692 low_ = makeAttribute "low"
693
694 -- | The @manifest@ attribute.
695 manifest_ :: Text -> Attribute
696 manifest_ = makeAttribute "manifest"
697
698 -- | The @max@ attribute.
699 max_ :: Text -> Attribute
700 max_ = makeAttribute "max"
701
702 -- | The @maxlength@ attribute.
703 maxlength_ :: Text -> Attribute
704 maxlength_ = makeAttribute "maxlength"
705
706 -- | The @media@ attribute.
707 media_ :: Text -> Attribute
708 media_ = makeAttribute "media"
709
710 -- | The @method@ attribute.
711 method_ :: Text -> Attribute
712 method_ = makeAttribute "method"
713
714 -- | The @min@ attribute.
715 min_ :: Text -> Attribute
716 min_ = makeAttribute "min"
717
718 -- | The @minlength@ attribute.
719 minlength_ :: Text -> Attribute
720 minlength_ = makeAttribute "minlength"
721
722 -- | The @multiple@ attribute.
723 multiple_ :: Text -> Attribute
724 multiple_ = makeAttribute "multiple"
725
726 -- | The @name@ attribute.
727 name_ :: Text -> Attribute
728 name_ = makeAttribute "name"
729
730 -- | The @novalidate@ attribute.
731 novalidate_ :: Text -> Attribute
732 novalidate_ = makeAttribute "novalidate"
733
734 -- | The @onbeforeonload@ attribute.
735 onbeforeonload_ :: Text -> Attribute
736 onbeforeonload_ = makeAttribute "onbeforeonload"
737
738 -- | The @onbeforeprint@ attribute.
739 onbeforeprint_ :: Text -> Attribute
740 onbeforeprint_ = makeAttribute "onbeforeprint"
741
742 -- | The @onblur@ attribute.
743 onblur_ :: Text -> Attribute
744 onblur_ = makeAttribute "onblur"
745
746 -- | The @oncanplay@ attribute.
747 oncanplay_ :: Text -> Attribute
748 oncanplay_ = makeAttribute "oncanplay"
749
750 -- | The @oncanplaythrough@ attribute.
751 oncanplaythrough_ :: Text -> Attribute
752 oncanplaythrough_ = makeAttribute "oncanplaythrough"
753
754 -- | The @onchange@ attribute.
755 onchange_ :: Text -> Attribute
756 onchange_ = makeAttribute "onchange"
757
758 -- | The @onclick@ attribute.
759 onclick_ :: Text -> Attribute
760 onclick_ = makeAttribute "onclick"
761
762 -- | The @oncontextmenu@ attribute.
763 oncontextmenu_ :: Text -> Attribute
764 oncontextmenu_ = makeAttribute "oncontextmenu"
765
766 -- | The @ondblclick@ attribute.
767 ondblclick_ :: Text -> Attribute
768 ondblclick_ = makeAttribute "ondblclick"
769
770 -- | The @ondrag@ attribute.
771 ondrag_ :: Text -> Attribute
772 ondrag_ = makeAttribute "ondrag"
773
774 -- | The @ondragend@ attribute.
775 ondragend_ :: Text -> Attribute
776 ondragend_ = makeAttribute "ondragend"
777
778 -- | The @ondragenter@ attribute.
779 ondragenter_ :: Text -> Attribute
780 ondragenter_ = makeAttribute "ondragenter"
781
782 -- | The @ondragleave@ attribute.
783 ondragleave_ :: Text -> Attribute
784 ondragleave_ = makeAttribute "ondragleave"
785
786 -- | The @ondragover@ attribute.
787 ondragover_ :: Text -> Attribute
788 ondragover_ = makeAttribute "ondragover"
789
790 -- | The @ondragstart@ attribute.
791 ondragstart_ :: Text -> Attribute
792 ondragstart_ = makeAttribute "ondragstart"
793
794 -- | The @ondrop@ attribute.
795 ondrop_ :: Text -> Attribute
796 ondrop_ = makeAttribute "ondrop"
797
798 -- | The @ondurationchange@ attribute.
799 ondurationchange_ :: Text -> Attribute
800 ondurationchange_ = makeAttribute "ondurationchange"
801
802 -- | The @onemptied@ attribute.
803 onemptied_ :: Text -> Attribute
804 onemptied_ = makeAttribute "onemptied"
805
806 -- | The @onended@ attribute.
807 onended_ :: Text -> Attribute
808 onended_ = makeAttribute "onended"
809
810 -- | The @onerror@ attribute.
811 onerror_ :: Text -> Attribute
812 onerror_ = makeAttribute "onerror"
813
814 -- | The @onfocus@ attribute.
815 onfocus_ :: Text -> Attribute
816 onfocus_ = makeAttribute "onfocus"
817
818 -- | The @onformchange@ attribute.
819 onformchange_ :: Text -> Attribute
820 onformchange_ = makeAttribute "onformchange"
821
822 -- | The @onforminput@ attribute.
823 onforminput_ :: Text -> Attribute
824 onforminput_ = makeAttribute "onforminput"
825
826 -- | The @onhaschange@ attribute.
827 onhaschange_ :: Text -> Attribute
828 onhaschange_ = makeAttribute "onhaschange"
829
830 -- | The @oninput@ attribute.
831 oninput_ :: Text -> Attribute
832 oninput_ = makeAttribute "oninput"
833
834 -- | The @oninvalid@ attribute.
835 oninvalid_ :: Text -> Attribute
836 oninvalid_ = makeAttribute "oninvalid"
837
838 -- | The @onkeydown@ attribute.
839 onkeydown_ :: Text -> Attribute
840 onkeydown_ = makeAttribute "onkeydown"
841
842 -- | The @onkeyup@ attribute.
843 onkeyup_ :: Text -> Attribute
844 onkeyup_ = makeAttribute "onkeyup"
845
846 -- | The @onload@ attribute.
847 onload_ :: Text -> Attribute
848 onload_ = makeAttribute "onload"
849
850 -- | The @onloadeddata@ attribute.
851 onloadeddata_ :: Text -> Attribute
852 onloadeddata_ = makeAttribute "onloadeddata"
853
854 -- | The @onloadedmetadata@ attribute.
855 onloadedmetadata_ :: Text -> Attribute
856 onloadedmetadata_ = makeAttribute "onloadedmetadata"
857
858 -- | The @onloadstart@ attribute.
859 onloadstart_ :: Text -> Attribute
860 onloadstart_ = makeAttribute "onloadstart"
861
862 -- | The @onmessage@ attribute.
863 onmessage_ :: Text -> Attribute
864 onmessage_ = makeAttribute "onmessage"
865
866 -- | The @onmousedown@ attribute.
867 onmousedown_ :: Text -> Attribute
868 onmousedown_ = makeAttribute "onmousedown"
869
870 -- | The @onmousemove@ attribute.
871 onmousemove_ :: Text -> Attribute
872 onmousemove_ = makeAttribute "onmousemove"
873
874 -- | The @onmouseout@ attribute.
875 onmouseout_ :: Text -> Attribute
876 onmouseout_ = makeAttribute "onmouseout"
877
878 -- | The @onmouseover@ attribute.
879 onmouseover_ :: Text -> Attribute
880 onmouseover_ = makeAttribute "onmouseover"
881
882 -- | The @onmouseup@ attribute.
883 onmouseup_ :: Text -> Attribute
884 onmouseup_ = makeAttribute "onmouseup"
885
886 -- | The @onmousewheel@ attribute.
887 onmousewheel_ :: Text -> Attribute
888 onmousewheel_ = makeAttribute "onmousewheel"
889
890 -- | The @ononline@ attribute.
891 ononline_ :: Text -> Attribute
892 ononline_ = makeAttribute "ononline"
893
894 -- | The @onpagehide@ attribute.
895 onpagehide_ :: Text -> Attribute
896 onpagehide_ = makeAttribute "onpagehide"
897
898 -- | The @onpageshow@ attribute.
899 onpageshow_ :: Text -> Attribute
900 onpageshow_ = makeAttribute "onpageshow"
901
902 -- | The @onpause@ attribute.
903 onpause_ :: Text -> Attribute
904 onpause_ = makeAttribute "onpause"
905
906 -- | The @onplay@ attribute.
907 onplay_ :: Text -> Attribute
908 onplay_ = makeAttribute "onplay"
909
910 -- | The @onplaying@ attribute.
911 onplaying_ :: Text -> Attribute
912 onplaying_ = makeAttribute "onplaying"
913
914 -- | The @onprogress@ attribute.
915 onprogress_ :: Text -> Attribute
916 onprogress_ = makeAttribute "onprogress"
917
918 -- | The @onpropstate@ attribute.
919 onpropstate_ :: Text -> Attribute
920 onpropstate_ = makeAttribute "onpropstate"
921
922 -- | The @onratechange@ attribute.
923 onratechange_ :: Text -> Attribute
924 onratechange_ = makeAttribute "onratechange"
925
926 -- | The @onreadystatechange@ attribute.
927 onreadystatechange_ :: Text -> Attribute
928 onreadystatechange_ = makeAttribute "onreadystatechange"
929
930 -- | The @onredo@ attribute.
931 onredo_ :: Text -> Attribute
932 onredo_ = makeAttribute "onredo"
933
934 -- | The @onresize@ attribute.
935 onresize_ :: Text -> Attribute
936 onresize_ = makeAttribute "onresize"
937
938 -- | The @onscroll@ attribute.
939 onscroll_ :: Text -> Attribute
940 onscroll_ = makeAttribute "onscroll"
941
942 -- | The @onseeked@ attribute.
943 onseeked_ :: Text -> Attribute
944 onseeked_ = makeAttribute "onseeked"
945
946 -- | The @onseeking@ attribute.
947 onseeking_ :: Text -> Attribute
948 onseeking_ = makeAttribute "onseeking"
949
950 -- | The @onselect@ attribute.
951 onselect_ :: Text -> Attribute
952 onselect_ = makeAttribute "onselect"
953
954 -- | The @onstalled@ attribute.
955 onstalled_ :: Text -> Attribute
956 onstalled_ = makeAttribute "onstalled"
957
958 -- | The @onstorage@ attribute.
959 onstorage_ :: Text -> Attribute
960 onstorage_ = makeAttribute "onstorage"
961
962 -- | The @onsubmit@ attribute.
963 onsubmit_ :: Text -> Attribute
964 onsubmit_ = makeAttribute "onsubmit"
965
966 -- | The @onsuspend@ attribute.
967 onsuspend_ :: Text -> Attribute
968 onsuspend_ = makeAttribute "onsuspend"
969
970 -- | The @ontimeupdate@ attribute.
971 ontimeupdate_ :: Text -> Attribute
972 ontimeupdate_ = makeAttribute "ontimeupdate"
973
974 -- | The @onundo@ attribute.
975 onundo_ :: Text -> Attribute
976 onundo_ = makeAttribute "onundo"
977
978 -- | The @onunload@ attribute.
979 onunload_ :: Text -> Attribute
980 onunload_ = makeAttribute "onunload"
981
982 -- | The @onvolumechange@ attribute.
983 onvolumechange_ :: Text -> Attribute
984 onvolumechange_ = makeAttribute "onvolumechange"
985
986 -- | The @onwaiting@ attribute.
987 onwaiting_ :: Text -> Attribute
988 onwaiting_ = makeAttribute "onwaiting"
989
990 -- | The @open@ attribute.
991 open_ :: Text -> Attribute
992 open_ = makeAttribute "open"
993
994 -- | The @optimum@ attribute.
995 optimum_ :: Text -> Attribute
996 optimum_ = makeAttribute "optimum"
997
998 -- | The @pattern@ attribute.
999 pattern_ :: Text -> Attribute
1000 pattern_ = makeAttribute "pattern"
1001
1002 -- | The @ping@ attribute.
1003 ping_ :: Text -> Attribute
1004 ping_ = makeAttribute "ping"
1005
1006 -- | The @placeholder@ attribute.
1007 placeholder_ :: Text -> Attribute
1008 placeholder_ = makeAttribute "placeholder"
1009
1010 -- | The @poster@ attribute.
1011 poster_ :: Text -> Attribute
1012 poster_ = makeAttribute "poster"
1013
1014 -- | The @preload@ attribute.
1015 preload_ :: Text -> Attribute
1016 preload_ = makeAttribute "preload"
1017
1018 -- | The @pubdate@ attribute.
1019 pubdate_ :: Text -> Attribute
1020 pubdate_ = makeAttribute "pubdate"
1021
1022 -- | The @radiogroup@ attribute.
1023 radiogroup_ :: Text -> Attribute
1024 radiogroup_ = makeAttribute "radiogroup"
1025
1026 -- | The @readonly@ attribute.
1027 readonly_ :: Text -> Attribute
1028 readonly_ = makeAttribute "readonly"
1029
1030 -- | The @rel@ attribute.
1031 rel_ :: Text -> Attribute
1032 rel_ = makeAttribute "rel"
1033
1034 -- | The @required@ attribute.
1035 required_ :: Text -> Attribute
1036 required_ = makeAttribute "required"
1037
1038 -- | The @reversed@ attribute.
1039 reversed_ :: Text -> Attribute
1040 reversed_ = makeAttribute "reversed"
1041
1042 -- | The @role@ attribute.
1043 role_ :: Text -> Attribute
1044 role_ = makeAttribute "role"
1045
1046 -- | The @rows@ attribute.
1047 rows_ :: Text -> Attribute
1048 rows_ = makeAttribute "rows"
1049
1050 -- | The @rowspan@ attribute.
1051 rowspan_ :: Text -> Attribute
1052 rowspan_ = makeAttribute "rowspan"
1053
1054 -- | The @sandbox@ attribute.
1055 sandbox_ :: Text -> Attribute
1056 sandbox_ = makeAttribute "sandbox"
1057
1058 -- | The @scope@ attribute.
1059 scope_ :: Text -> Attribute
1060 scope_ = makeAttribute "scope"
1061
1062 -- | The @scoped@ attribute.
1063 scoped_ :: Text -> Attribute
1064 scoped_ = makeAttribute "scoped"
1065
1066 -- | The @seamless@ attribute.
1067 seamless_ :: Text -> Attribute
1068 seamless_ = makeAttribute "seamless"
1069
1070 -- | The @selected@ attribute.
1071 selected_ :: Text -> Attribute
1072 selected_ = makeAttribute "selected"
1073
1074 -- | The @shape@ attribute.
1075 shape_ :: Text -> Attribute
1076 shape_ = makeAttribute "shape"
1077
1078 -- | The @size@ attribute.
1079 size_ :: Text -> Attribute
1080 size_ = makeAttribute "size"
1081
1082 -- | The @sizes@ attribute.
1083 sizes_ :: Text -> Attribute
1084 sizes_ = makeAttribute "sizes"
1085
1086 -- | The @spellcheck@ attribute.
1087 spellcheck_ :: Text -> Attribute
1088 spellcheck_ = makeAttribute "spellcheck"
1089
1090 -- | The @src@ attribute.
1091 src_ :: Text -> Attribute
1092 src_ = makeAttribute "src"
1093
1094 -- | The @srcdoc@ attribute.
1095 srcdoc_ :: Text -> Attribute
1096 srcdoc_ = makeAttribute "srcdoc"
1097
1098 -- | The @start@ attribute.
1099 start_ :: Text -> Attribute
1100 start_ = makeAttribute "start"
1101
1102 -- | The @step@ attribute.
1103 step_ :: Text -> Attribute
1104 step_ = makeAttribute "step"
1105
1106 -- | The @subject@ attribute.
1107 subject_ :: Text -> Attribute
1108 subject_ = makeAttribute "subject"
1109
1110 -- | The @tabindex@ attribute.
1111 tabindex_ :: Text -> Attribute
1112 tabindex_ = makeAttribute "tabindex"
1113
1114 -- | The @target@ attribute.
1115 target_ :: Text -> Attribute
1116 target_ = makeAttribute "target"
1117
1118 -- | The @type@ attribute.
1119 type_ :: Text -> Attribute
1120 type_ = makeAttribute "type"
1121
1122 -- | The @usemap@ attribute.
1123 usemap_ :: Text -> Attribute
1124 usemap_ = makeAttribute "usemap"
1125
1126 -- | The @value@ attribute.
1127 value_ :: Text -> Attribute
1128 value_ = makeAttribute "value"
1129
1130 -- | The @width@ attribute.
1131 width_ :: Text -> Attribute
1132 width_ = makeAttribute "width"
1133
1134 -- | The @wrap@ attribute.
1135 wrap_ :: Text -> Attribute
1136 wrap_ = makeAttribute "wrap"
1137
1138 -- | The @xmlns@ attribute.
1139 xmlns_ :: Text -> Attribute
1140 xmlns_ = makeAttribute "xmlns"