Current section
Files
Jump to
Current section
Files
src/nakai@html.erl
-module(nakai@html).
-compile([no_auto_import, nowarn_unused_vars]).
-export([title/1, a/2, a_text/2, abbr/2, abbr_text/2, address/2, address_text/2, area/1, article/2, article_text/2, aside/2, aside_text/2, audio/2, audio_text/2, b/2, b_text/2, base/1, bdi/2, bdi_text/2, bdo/2, bdo_text/2, blockquote/2, blockquote_text/2, br/1, button/2, button_text/2, canvas/2, canvas_text/2, caption/2, caption_text/2, cite/2, cite_text/2, code/2, code_text/2, col/2, col_text/2, colgroup/2, colgroup_text/2, data/2, data_text/2, datalist/2, datalist_text/2, dd/2, dd_text/2, del/2, del_text/2, details/2, details_text/2, dfn/2, dfn_text/2, dialog/2, dialog_text/2, 'div'/2, div_text/2, dl/2, dl_text/2, dt/2, dt_text/2, em/2, em_text/2, embed/2, embed_text/2, fieldset/2, fieldset_text/2, figcaption/2, figcaption_text/2, figure/2, figure_text/2, footer/2, footer_text/2, form/2, form_text/2, h1/2, h1_text/2, h2/2, h2_text/2, h3/2, h3_text/2, h4/2, h4_text/2, h5/2, h5_text/2, h6/2, h6_text/2, header/2, header_text/2, hr/1, i/2, i_text/2, iframe/2, iframe_text/2, img/1, input/1, ins/2, ins_text/2, kbd/2, kbd_text/2, label/2, label_text/2, legend/2, legend_text/2, li/2, li_text/2, link/1, main/2, main_text/2, map/2, map_text/2, mark/2, mark_text/2, math/2, math_text/2, menu/2, menu_text/2, menuitem/2, menuitem_text/2, meta/1, meter/2, meter_text/2, nav/2, nav_text/2, noscript/2, noscript_text/2, object/2, object_text/2, ol/2, ol_text/2, optgroup/2, optgroup_text/2, option/2, option_text/2, output/2, output_text/2, p/2, p_text/2, param/2, param_text/2, picture/2, picture_text/2, pre/2, pre_text/2, progress/2, progress_text/2, q/2, q_text/2, rp/2, rp_text/2, rt/2, rt_text/2, ruby/2, ruby_text/2, s/2, s_text/2, samp/2, samp_text/2, section/2, section_text/2, select/2, select_text/2, small/2, small_text/2, source/1, span/2, span_text/2, strong/2, strong_text/2, sub/2, sub_text/2, summary/2, summary_text/2, sup/2, sup_text/2, svg/2, svg_text/2, table/2, table_text/2, tbody/2, tbody_text/2, td/2, td_text/2, textarea/2, textarea_text/2, tfoot/2, tfoot_text/2, th/2, th_text/2, thead/2, thead_text/2, time/2, time_text/2, tr/2, tr_text/2, track/1, u/2, u_text/2, ul/2, ul_text/2, var/2, var_text/2, video/2, video_text/2, wbr/2, wbr_text/2]).
-export_type([node_/1]).
-type node_(KOL) :: {doctype, binary()} |
{html, list(nakai@html@attrs:attr(KOL)), list(node_(KOL))} |
{head, list(node_(KOL))} |
{body, list(nakai@html@attrs:attr(KOL)), list(node_(KOL))} |
{comment, binary()} |
{element, binary(), list(nakai@html@attrs:attr(KOL)), list(node_(KOL))} |
{leaf_element, binary(), list(nakai@html@attrs:attr(KOL))} |
{text, binary()} |
{unsafe_text, binary()} |
{fragment, list(node_(KOL))} |
nothing.
-spec title(binary()) -> node_(any()).
title(Text) ->
{element, <<"title"/utf8>>, [], [{text, Text}]}.
-spec a(list(nakai@html@attrs:attr(KOO)), list(node_(KOO))) -> node_(KOO).
a(Attrs, Children) ->
{element, <<"a"/utf8>>, Attrs, Children}.
-spec a_text(list(nakai@html@attrs:attr(KOU)), binary()) -> node_(KOU).
a_text(Attrs, Text) ->
{element, <<"a"/utf8>>, Attrs, [{text, Text}]}.
-spec abbr(list(nakai@html@attrs:attr(KOY)), list(node_(KOY))) -> node_(KOY).
abbr(Attrs, Children) ->
{element, <<"abbr"/utf8>>, Attrs, Children}.
-spec abbr_text(list(nakai@html@attrs:attr(KPE)), binary()) -> node_(KPE).
abbr_text(Attrs, Text) ->
{element, <<"abbr"/utf8>>, Attrs, [{text, Text}]}.
-spec address(list(nakai@html@attrs:attr(KPI)), list(node_(KPI))) -> node_(KPI).
address(Attrs, Children) ->
{element, <<"address"/utf8>>, Attrs, Children}.
-spec address_text(list(nakai@html@attrs:attr(KPO)), binary()) -> node_(KPO).
address_text(Attrs, Text) ->
{element, <<"address"/utf8>>, Attrs, [{text, Text}]}.
-spec area(list(nakai@html@attrs:attr(KPS))) -> node_(KPS).
area(Attrs) ->
{leaf_element, <<"area"/utf8>>, Attrs}.
-spec article(list(nakai@html@attrs:attr(KPW)), list(node_(KPW))) -> node_(KPW).
article(Attrs, Children) ->
{element, <<"article"/utf8>>, Attrs, Children}.
-spec article_text(list(nakai@html@attrs:attr(KQC)), binary()) -> node_(KQC).
article_text(Attrs, Text) ->
{element, <<"article"/utf8>>, Attrs, [{text, Text}]}.
-spec aside(list(nakai@html@attrs:attr(KQG)), list(node_(KQG))) -> node_(KQG).
aside(Attrs, Children) ->
{element, <<"aside"/utf8>>, Attrs, Children}.
-spec aside_text(list(nakai@html@attrs:attr(KQM)), binary()) -> node_(KQM).
aside_text(Attrs, Text) ->
{element, <<"aside"/utf8>>, Attrs, [{text, Text}]}.
-spec audio(list(nakai@html@attrs:attr(KQQ)), list(node_(KQQ))) -> node_(KQQ).
audio(Attrs, Children) ->
{element, <<"audio"/utf8>>, Attrs, Children}.
-spec audio_text(list(nakai@html@attrs:attr(KQW)), binary()) -> node_(KQW).
audio_text(Attrs, Text) ->
{element, <<"audio"/utf8>>, Attrs, [{text, Text}]}.
-spec b(list(nakai@html@attrs:attr(KRA)), list(node_(KRA))) -> node_(KRA).
b(Attrs, Children) ->
{element, <<"b"/utf8>>, Attrs, Children}.
-spec b_text(list(nakai@html@attrs:attr(KRG)), binary()) -> node_(KRG).
b_text(Attrs, Text) ->
{element, <<"b"/utf8>>, Attrs, [{text, Text}]}.
-spec base(list(nakai@html@attrs:attr(KRK))) -> node_(KRK).
base(Attrs) ->
{leaf_element, <<"base"/utf8>>, Attrs}.
-spec bdi(list(nakai@html@attrs:attr(KRO)), list(node_(KRO))) -> node_(KRO).
bdi(Attrs, Children) ->
{element, <<"bdi"/utf8>>, Attrs, Children}.
-spec bdi_text(list(nakai@html@attrs:attr(KRU)), binary()) -> node_(KRU).
bdi_text(Attrs, Text) ->
{element, <<"bdi"/utf8>>, Attrs, [{text, Text}]}.
-spec bdo(list(nakai@html@attrs:attr(KRY)), list(node_(KRY))) -> node_(KRY).
bdo(Attrs, Children) ->
{element, <<"bdo"/utf8>>, Attrs, Children}.
-spec bdo_text(list(nakai@html@attrs:attr(KSE)), binary()) -> node_(KSE).
bdo_text(Attrs, Text) ->
{element, <<"bdo"/utf8>>, Attrs, [{text, Text}]}.
-spec blockquote(list(nakai@html@attrs:attr(KSI)), list(node_(KSI))) -> node_(KSI).
blockquote(Attrs, Children) ->
{element, <<"blockquote"/utf8>>, Attrs, Children}.
-spec blockquote_text(list(nakai@html@attrs:attr(KSO)), binary()) -> node_(KSO).
blockquote_text(Attrs, Text) ->
{element, <<"blockquote"/utf8>>, Attrs, [{text, Text}]}.
-spec br(list(nakai@html@attrs:attr(KSS))) -> node_(KSS).
br(Attrs) ->
{leaf_element, <<"br"/utf8>>, Attrs}.
-spec button(list(nakai@html@attrs:attr(KSW)), list(node_(KSW))) -> node_(KSW).
button(Attrs, Children) ->
{element, <<"button"/utf8>>, Attrs, Children}.
-spec button_text(list(nakai@html@attrs:attr(KTC)), binary()) -> node_(KTC).
button_text(Attrs, Text) ->
{element, <<"button"/utf8>>, Attrs, [{text, Text}]}.
-spec canvas(list(nakai@html@attrs:attr(KTG)), list(node_(KTG))) -> node_(KTG).
canvas(Attrs, Children) ->
{element, <<"canvas"/utf8>>, Attrs, Children}.
-spec canvas_text(list(nakai@html@attrs:attr(KTM)), binary()) -> node_(KTM).
canvas_text(Attrs, Text) ->
{element, <<"canvas"/utf8>>, Attrs, [{text, Text}]}.
-spec caption(list(nakai@html@attrs:attr(KTQ)), list(node_(KTQ))) -> node_(KTQ).
caption(Attrs, Children) ->
{element, <<"caption"/utf8>>, Attrs, Children}.
-spec caption_text(list(nakai@html@attrs:attr(KTW)), binary()) -> node_(KTW).
caption_text(Attrs, Text) ->
{element, <<"caption"/utf8>>, Attrs, [{text, Text}]}.
-spec cite(list(nakai@html@attrs:attr(KUA)), list(node_(KUA))) -> node_(KUA).
cite(Attrs, Children) ->
{element, <<"cite"/utf8>>, Attrs, Children}.
-spec cite_text(list(nakai@html@attrs:attr(KUG)), binary()) -> node_(KUG).
cite_text(Attrs, Text) ->
{element, <<"cite"/utf8>>, Attrs, [{text, Text}]}.
-spec code(list(nakai@html@attrs:attr(KUK)), list(node_(KUK))) -> node_(KUK).
code(Attrs, Children) ->
{element, <<"code"/utf8>>, Attrs, Children}.
-spec code_text(list(nakai@html@attrs:attr(KUQ)), binary()) -> node_(KUQ).
code_text(Attrs, Text) ->
{element, <<"code"/utf8>>, Attrs, [{text, Text}]}.
-spec col(list(nakai@html@attrs:attr(KUU)), list(node_(KUU))) -> node_(KUU).
col(Attrs, Children) ->
{element, <<"col"/utf8>>, Attrs, Children}.
-spec col_text(list(nakai@html@attrs:attr(KVA)), binary()) -> node_(KVA).
col_text(Attrs, Text) ->
{element, <<"col"/utf8>>, Attrs, [{text, Text}]}.
-spec colgroup(list(nakai@html@attrs:attr(KVE)), list(node_(KVE))) -> node_(KVE).
colgroup(Attrs, Children) ->
{element, <<"colgroup"/utf8>>, Attrs, Children}.
-spec colgroup_text(list(nakai@html@attrs:attr(KVK)), binary()) -> node_(KVK).
colgroup_text(Attrs, Text) ->
{element, <<"colgroup"/utf8>>, Attrs, [{text, Text}]}.
-spec data(list(nakai@html@attrs:attr(KVO)), list(node_(KVO))) -> node_(KVO).
data(Attrs, Children) ->
{element, <<"data"/utf8>>, Attrs, Children}.
-spec data_text(list(nakai@html@attrs:attr(KVU)), binary()) -> node_(KVU).
data_text(Attrs, Text) ->
{element, <<"data"/utf8>>, Attrs, [{text, Text}]}.
-spec datalist(list(nakai@html@attrs:attr(KVY)), list(node_(KVY))) -> node_(KVY).
datalist(Attrs, Children) ->
{element, <<"datalist"/utf8>>, Attrs, Children}.
-spec datalist_text(list(nakai@html@attrs:attr(KWE)), binary()) -> node_(KWE).
datalist_text(Attrs, Text) ->
{element, <<"datalist"/utf8>>, Attrs, [{text, Text}]}.
-spec dd(list(nakai@html@attrs:attr(KWI)), list(node_(KWI))) -> node_(KWI).
dd(Attrs, Children) ->
{element, <<"dd"/utf8>>, Attrs, Children}.
-spec dd_text(list(nakai@html@attrs:attr(KWO)), binary()) -> node_(KWO).
dd_text(Attrs, Text) ->
{element, <<"dd"/utf8>>, Attrs, [{text, Text}]}.
-spec del(list(nakai@html@attrs:attr(KWS)), list(node_(KWS))) -> node_(KWS).
del(Attrs, Children) ->
{element, <<"del"/utf8>>, Attrs, Children}.
-spec del_text(list(nakai@html@attrs:attr(KWY)), binary()) -> node_(KWY).
del_text(Attrs, Text) ->
{element, <<"del"/utf8>>, Attrs, [{text, Text}]}.
-spec details(list(nakai@html@attrs:attr(KXC)), list(node_(KXC))) -> node_(KXC).
details(Attrs, Children) ->
{element, <<"details"/utf8>>, Attrs, Children}.
-spec details_text(list(nakai@html@attrs:attr(KXI)), binary()) -> node_(KXI).
details_text(Attrs, Text) ->
{element, <<"details"/utf8>>, Attrs, [{text, Text}]}.
-spec dfn(list(nakai@html@attrs:attr(KXM)), list(node_(KXM))) -> node_(KXM).
dfn(Attrs, Children) ->
{element, <<"dfn"/utf8>>, Attrs, Children}.
-spec dfn_text(list(nakai@html@attrs:attr(KXS)), binary()) -> node_(KXS).
dfn_text(Attrs, Text) ->
{element, <<"dfn"/utf8>>, Attrs, [{text, Text}]}.
-spec dialog(list(nakai@html@attrs:attr(KXW)), list(node_(KXW))) -> node_(KXW).
dialog(Attrs, Children) ->
{element, <<"dialog"/utf8>>, Attrs, Children}.
-spec dialog_text(list(nakai@html@attrs:attr(KYC)), binary()) -> node_(KYC).
dialog_text(Attrs, Text) ->
{element, <<"dialog"/utf8>>, Attrs, [{text, Text}]}.
-spec 'div'(list(nakai@html@attrs:attr(KYG)), list(node_(KYG))) -> node_(KYG).
'div'(Attrs, Children) ->
{element, <<"div"/utf8>>, Attrs, Children}.
-spec div_text(list(nakai@html@attrs:attr(KYM)), binary()) -> node_(KYM).
div_text(Attrs, Text) ->
{element, <<"div"/utf8>>, Attrs, [{text, Text}]}.
-spec dl(list(nakai@html@attrs:attr(KYQ)), list(node_(KYQ))) -> node_(KYQ).
dl(Attrs, Children) ->
{element, <<"dl"/utf8>>, Attrs, Children}.
-spec dl_text(list(nakai@html@attrs:attr(KYW)), binary()) -> node_(KYW).
dl_text(Attrs, Text) ->
{element, <<"dl"/utf8>>, Attrs, [{text, Text}]}.
-spec dt(list(nakai@html@attrs:attr(KZA)), list(node_(KZA))) -> node_(KZA).
dt(Attrs, Children) ->
{element, <<"dt"/utf8>>, Attrs, Children}.
-spec dt_text(list(nakai@html@attrs:attr(KZG)), binary()) -> node_(KZG).
dt_text(Attrs, Text) ->
{element, <<"dt"/utf8>>, Attrs, [{text, Text}]}.
-spec em(list(nakai@html@attrs:attr(KZK)), list(node_(KZK))) -> node_(KZK).
em(Attrs, Children) ->
{element, <<"em"/utf8>>, Attrs, Children}.
-spec em_text(list(nakai@html@attrs:attr(KZQ)), binary()) -> node_(KZQ).
em_text(Attrs, Text) ->
{element, <<"em"/utf8>>, Attrs, [{text, Text}]}.
-spec embed(list(nakai@html@attrs:attr(KZU)), list(node_(KZU))) -> node_(KZU).
embed(Attrs, Children) ->
{element, <<"embed"/utf8>>, Attrs, Children}.
-spec embed_text(list(nakai@html@attrs:attr(LAA)), binary()) -> node_(LAA).
embed_text(Attrs, Text) ->
{element, <<"embed"/utf8>>, Attrs, [{text, Text}]}.
-spec fieldset(list(nakai@html@attrs:attr(LAE)), list(node_(LAE))) -> node_(LAE).
fieldset(Attrs, Children) ->
{element, <<"fieldset"/utf8>>, Attrs, Children}.
-spec fieldset_text(list(nakai@html@attrs:attr(LAK)), binary()) -> node_(LAK).
fieldset_text(Attrs, Text) ->
{element, <<"fieldset"/utf8>>, Attrs, [{text, Text}]}.
-spec figcaption(list(nakai@html@attrs:attr(LAO)), list(node_(LAO))) -> node_(LAO).
figcaption(Attrs, Children) ->
{element, <<"figcaption"/utf8>>, Attrs, Children}.
-spec figcaption_text(list(nakai@html@attrs:attr(LAU)), binary()) -> node_(LAU).
figcaption_text(Attrs, Text) ->
{element, <<"figcaption"/utf8>>, Attrs, [{text, Text}]}.
-spec figure(list(nakai@html@attrs:attr(LAY)), list(node_(LAY))) -> node_(LAY).
figure(Attrs, Children) ->
{element, <<"figure"/utf8>>, Attrs, Children}.
-spec figure_text(list(nakai@html@attrs:attr(LBE)), binary()) -> node_(LBE).
figure_text(Attrs, Text) ->
{element, <<"figure"/utf8>>, Attrs, [{text, Text}]}.
-spec footer(list(nakai@html@attrs:attr(LBI)), list(node_(LBI))) -> node_(LBI).
footer(Attrs, Children) ->
{element, <<"footer"/utf8>>, Attrs, Children}.
-spec footer_text(list(nakai@html@attrs:attr(LBO)), binary()) -> node_(LBO).
footer_text(Attrs, Text) ->
{element, <<"footer"/utf8>>, Attrs, [{text, Text}]}.
-spec form(list(nakai@html@attrs:attr(LBS)), list(node_(LBS))) -> node_(LBS).
form(Attrs, Children) ->
{element, <<"form"/utf8>>, Attrs, Children}.
-spec form_text(list(nakai@html@attrs:attr(LBY)), binary()) -> node_(LBY).
form_text(Attrs, Text) ->
{element, <<"form"/utf8>>, Attrs, [{text, Text}]}.
-spec h1(list(nakai@html@attrs:attr(LCC)), list(node_(LCC))) -> node_(LCC).
h1(Attrs, Children) ->
{element, <<"h1"/utf8>>, Attrs, Children}.
-spec h1_text(list(nakai@html@attrs:attr(LCI)), binary()) -> node_(LCI).
h1_text(Attrs, Text) ->
{element, <<"h1"/utf8>>, Attrs, [{text, Text}]}.
-spec h2(list(nakai@html@attrs:attr(LCM)), list(node_(LCM))) -> node_(LCM).
h2(Attrs, Children) ->
{element, <<"h2"/utf8>>, Attrs, Children}.
-spec h2_text(list(nakai@html@attrs:attr(LCS)), binary()) -> node_(LCS).
h2_text(Attrs, Text) ->
{element, <<"h2"/utf8>>, Attrs, [{text, Text}]}.
-spec h3(list(nakai@html@attrs:attr(LCW)), list(node_(LCW))) -> node_(LCW).
h3(Attrs, Children) ->
{element, <<"h3"/utf8>>, Attrs, Children}.
-spec h3_text(list(nakai@html@attrs:attr(LDC)), binary()) -> node_(LDC).
h3_text(Attrs, Text) ->
{element, <<"h3"/utf8>>, Attrs, [{text, Text}]}.
-spec h4(list(nakai@html@attrs:attr(LDG)), list(node_(LDG))) -> node_(LDG).
h4(Attrs, Children) ->
{element, <<"h4"/utf8>>, Attrs, Children}.
-spec h4_text(list(nakai@html@attrs:attr(LDM)), binary()) -> node_(LDM).
h4_text(Attrs, Text) ->
{element, <<"h4"/utf8>>, Attrs, [{text, Text}]}.
-spec h5(list(nakai@html@attrs:attr(LDQ)), list(node_(LDQ))) -> node_(LDQ).
h5(Attrs, Children) ->
{element, <<"h5"/utf8>>, Attrs, Children}.
-spec h5_text(list(nakai@html@attrs:attr(LDW)), binary()) -> node_(LDW).
h5_text(Attrs, Text) ->
{element, <<"h5"/utf8>>, Attrs, [{text, Text}]}.
-spec h6(list(nakai@html@attrs:attr(LEA)), list(node_(LEA))) -> node_(LEA).
h6(Attrs, Children) ->
{element, <<"h6"/utf8>>, Attrs, Children}.
-spec h6_text(list(nakai@html@attrs:attr(LEG)), binary()) -> node_(LEG).
h6_text(Attrs, Text) ->
{element, <<"h6"/utf8>>, Attrs, [{text, Text}]}.
-spec header(list(nakai@html@attrs:attr(LEK)), list(node_(LEK))) -> node_(LEK).
header(Attrs, Children) ->
{element, <<"header"/utf8>>, Attrs, Children}.
-spec header_text(list(nakai@html@attrs:attr(LEQ)), binary()) -> node_(LEQ).
header_text(Attrs, Text) ->
{element, <<"header"/utf8>>, Attrs, [{text, Text}]}.
-spec hr(list(nakai@html@attrs:attr(LEU))) -> node_(LEU).
hr(Attrs) ->
{leaf_element, <<"hr"/utf8>>, Attrs}.
-spec i(list(nakai@html@attrs:attr(LEY)), list(node_(LEY))) -> node_(LEY).
i(Attrs, Children) ->
{element, <<"i"/utf8>>, Attrs, Children}.
-spec i_text(list(nakai@html@attrs:attr(LFE)), binary()) -> node_(LFE).
i_text(Attrs, Text) ->
{element, <<"i"/utf8>>, Attrs, [{text, Text}]}.
-spec iframe(list(nakai@html@attrs:attr(LFI)), list(node_(LFI))) -> node_(LFI).
iframe(Attrs, Children) ->
{element, <<"iframe"/utf8>>, Attrs, Children}.
-spec iframe_text(list(nakai@html@attrs:attr(LFO)), binary()) -> node_(LFO).
iframe_text(Attrs, Text) ->
{element, <<"iframe"/utf8>>, Attrs, [{text, Text}]}.
-spec img(list(nakai@html@attrs:attr(LFS))) -> node_(LFS).
img(Attrs) ->
{leaf_element, <<"img"/utf8>>, Attrs}.
-spec input(list(nakai@html@attrs:attr(LFW))) -> node_(LFW).
input(Attrs) ->
{leaf_element, <<"input"/utf8>>, Attrs}.
-spec ins(list(nakai@html@attrs:attr(LGA)), list(node_(LGA))) -> node_(LGA).
ins(Attrs, Children) ->
{element, <<"ins"/utf8>>, Attrs, Children}.
-spec ins_text(list(nakai@html@attrs:attr(LGG)), binary()) -> node_(LGG).
ins_text(Attrs, Text) ->
{element, <<"ins"/utf8>>, Attrs, [{text, Text}]}.
-spec kbd(list(nakai@html@attrs:attr(LGK)), list(node_(LGK))) -> node_(LGK).
kbd(Attrs, Children) ->
{element, <<"kbd"/utf8>>, Attrs, Children}.
-spec kbd_text(list(nakai@html@attrs:attr(LGQ)), binary()) -> node_(LGQ).
kbd_text(Attrs, Text) ->
{element, <<"kbd"/utf8>>, Attrs, [{text, Text}]}.
-spec label(list(nakai@html@attrs:attr(LGU)), list(node_(LGU))) -> node_(LGU).
label(Attrs, Children) ->
{element, <<"label"/utf8>>, Attrs, Children}.
-spec label_text(list(nakai@html@attrs:attr(LHA)), binary()) -> node_(LHA).
label_text(Attrs, Text) ->
{element, <<"label"/utf8>>, Attrs, [{text, Text}]}.
-spec legend(list(nakai@html@attrs:attr(LHE)), list(node_(LHE))) -> node_(LHE).
legend(Attrs, Children) ->
{element, <<"legend"/utf8>>, Attrs, Children}.
-spec legend_text(list(nakai@html@attrs:attr(LHK)), binary()) -> node_(LHK).
legend_text(Attrs, Text) ->
{element, <<"legend"/utf8>>, Attrs, [{text, Text}]}.
-spec li(list(nakai@html@attrs:attr(LHO)), list(node_(LHO))) -> node_(LHO).
li(Attrs, Children) ->
{element, <<"li"/utf8>>, Attrs, Children}.
-spec li_text(list(nakai@html@attrs:attr(LHU)), binary()) -> node_(LHU).
li_text(Attrs, Text) ->
{element, <<"li"/utf8>>, Attrs, [{text, Text}]}.
-spec link(list(nakai@html@attrs:attr(LHY))) -> node_(LHY).
link(Attrs) ->
{leaf_element, <<"link"/utf8>>, Attrs}.
-spec main(list(nakai@html@attrs:attr(LIC)), list(node_(LIC))) -> node_(LIC).
main(Attrs, Children) ->
{element, <<"main"/utf8>>, Attrs, Children}.
-spec main_text(list(nakai@html@attrs:attr(LII)), binary()) -> node_(LII).
main_text(Attrs, Text) ->
{element, <<"main"/utf8>>, Attrs, [{text, Text}]}.
-spec map(list(nakai@html@attrs:attr(LIM)), list(node_(LIM))) -> node_(LIM).
map(Attrs, Children) ->
{element, <<"map"/utf8>>, Attrs, Children}.
-spec map_text(list(nakai@html@attrs:attr(LIS)), binary()) -> node_(LIS).
map_text(Attrs, Text) ->
{element, <<"map"/utf8>>, Attrs, [{text, Text}]}.
-spec mark(list(nakai@html@attrs:attr(LIW)), list(node_(LIW))) -> node_(LIW).
mark(Attrs, Children) ->
{element, <<"mark"/utf8>>, Attrs, Children}.
-spec mark_text(list(nakai@html@attrs:attr(LJC)), binary()) -> node_(LJC).
mark_text(Attrs, Text) ->
{element, <<"mark"/utf8>>, Attrs, [{text, Text}]}.
-spec math(list(nakai@html@attrs:attr(LJG)), list(node_(LJG))) -> node_(LJG).
math(Attrs, Children) ->
{element, <<"math"/utf8>>, Attrs, Children}.
-spec math_text(list(nakai@html@attrs:attr(LJM)), binary()) -> node_(LJM).
math_text(Attrs, Text) ->
{element, <<"math"/utf8>>, Attrs, [{text, Text}]}.
-spec menu(list(nakai@html@attrs:attr(LJQ)), list(node_(LJQ))) -> node_(LJQ).
menu(Attrs, Children) ->
{element, <<"menu"/utf8>>, Attrs, Children}.
-spec menu_text(list(nakai@html@attrs:attr(LJW)), binary()) -> node_(LJW).
menu_text(Attrs, Text) ->
{element, <<"menu"/utf8>>, Attrs, [{text, Text}]}.
-spec menuitem(list(nakai@html@attrs:attr(LKA)), list(node_(LKA))) -> node_(LKA).
menuitem(Attrs, Children) ->
{element, <<"menuitem"/utf8>>, Attrs, Children}.
-spec menuitem_text(list(nakai@html@attrs:attr(LKG)), binary()) -> node_(LKG).
menuitem_text(Attrs, Text) ->
{element, <<"menuitem"/utf8>>, Attrs, [{text, Text}]}.
-spec meta(list(nakai@html@attrs:attr(LKK))) -> node_(LKK).
meta(Attrs) ->
{leaf_element, <<"meta"/utf8>>, Attrs}.
-spec meter(list(nakai@html@attrs:attr(LKO)), list(node_(LKO))) -> node_(LKO).
meter(Attrs, Children) ->
{element, <<"meter"/utf8>>, Attrs, Children}.
-spec meter_text(list(nakai@html@attrs:attr(LKU)), binary()) -> node_(LKU).
meter_text(Attrs, Text) ->
{element, <<"meter"/utf8>>, Attrs, [{text, Text}]}.
-spec nav(list(nakai@html@attrs:attr(LKY)), list(node_(LKY))) -> node_(LKY).
nav(Attrs, Children) ->
{element, <<"nav"/utf8>>, Attrs, Children}.
-spec nav_text(list(nakai@html@attrs:attr(LLE)), binary()) -> node_(LLE).
nav_text(Attrs, Text) ->
{element, <<"nav"/utf8>>, Attrs, [{text, Text}]}.
-spec noscript(list(nakai@html@attrs:attr(LLI)), list(node_(LLI))) -> node_(LLI).
noscript(Attrs, Children) ->
{element, <<"noscript"/utf8>>, Attrs, Children}.
-spec noscript_text(list(nakai@html@attrs:attr(LLO)), binary()) -> node_(LLO).
noscript_text(Attrs, Text) ->
{element, <<"noscript"/utf8>>, Attrs, [{text, Text}]}.
-spec object(list(nakai@html@attrs:attr(LLS)), list(node_(LLS))) -> node_(LLS).
object(Attrs, Children) ->
{element, <<"object"/utf8>>, Attrs, Children}.
-spec object_text(list(nakai@html@attrs:attr(LLY)), binary()) -> node_(LLY).
object_text(Attrs, Text) ->
{element, <<"object"/utf8>>, Attrs, [{text, Text}]}.
-spec ol(list(nakai@html@attrs:attr(LMC)), list(node_(LMC))) -> node_(LMC).
ol(Attrs, Children) ->
{element, <<"ol"/utf8>>, Attrs, Children}.
-spec ol_text(list(nakai@html@attrs:attr(LMI)), binary()) -> node_(LMI).
ol_text(Attrs, Text) ->
{element, <<"ol"/utf8>>, Attrs, [{text, Text}]}.
-spec optgroup(list(nakai@html@attrs:attr(LMM)), list(node_(LMM))) -> node_(LMM).
optgroup(Attrs, Children) ->
{element, <<"optgroup"/utf8>>, Attrs, Children}.
-spec optgroup_text(list(nakai@html@attrs:attr(LMS)), binary()) -> node_(LMS).
optgroup_text(Attrs, Text) ->
{element, <<"optgroup"/utf8>>, Attrs, [{text, Text}]}.
-spec option(list(nakai@html@attrs:attr(LMW)), list(node_(LMW))) -> node_(LMW).
option(Attrs, Children) ->
{element, <<"option"/utf8>>, Attrs, Children}.
-spec option_text(list(nakai@html@attrs:attr(LNC)), binary()) -> node_(LNC).
option_text(Attrs, Text) ->
{element, <<"option"/utf8>>, Attrs, [{text, Text}]}.
-spec output(list(nakai@html@attrs:attr(LNG)), list(node_(LNG))) -> node_(LNG).
output(Attrs, Children) ->
{element, <<"output"/utf8>>, Attrs, Children}.
-spec output_text(list(nakai@html@attrs:attr(LNM)), binary()) -> node_(LNM).
output_text(Attrs, Text) ->
{element, <<"output"/utf8>>, Attrs, [{text, Text}]}.
-spec p(list(nakai@html@attrs:attr(LNQ)), list(node_(LNQ))) -> node_(LNQ).
p(Attrs, Children) ->
{element, <<"p"/utf8>>, Attrs, Children}.
-spec p_text(list(nakai@html@attrs:attr(LNW)), binary()) -> node_(LNW).
p_text(Attrs, Text) ->
{element, <<"p"/utf8>>, Attrs, [{text, Text}]}.
-spec param(list(nakai@html@attrs:attr(LOA)), list(node_(LOA))) -> node_(LOA).
param(Attrs, Children) ->
{element, <<"param"/utf8>>, Attrs, Children}.
-spec param_text(list(nakai@html@attrs:attr(LOG)), binary()) -> node_(LOG).
param_text(Attrs, Text) ->
{element, <<"param"/utf8>>, Attrs, [{text, Text}]}.
-spec picture(list(nakai@html@attrs:attr(LOK)), list(node_(LOK))) -> node_(LOK).
picture(Attrs, Children) ->
{element, <<"picture"/utf8>>, Attrs, Children}.
-spec picture_text(list(nakai@html@attrs:attr(LOQ)), binary()) -> node_(LOQ).
picture_text(Attrs, Text) ->
{element, <<"picture"/utf8>>, Attrs, [{text, Text}]}.
-spec pre(list(nakai@html@attrs:attr(LOU)), list(node_(LOU))) -> node_(LOU).
pre(Attrs, Children) ->
{element, <<"pre"/utf8>>, Attrs, Children}.
-spec pre_text(list(nakai@html@attrs:attr(LPA)), binary()) -> node_(LPA).
pre_text(Attrs, Text) ->
{element, <<"pre"/utf8>>, Attrs, [{text, Text}]}.
-spec progress(list(nakai@html@attrs:attr(LPE)), list(node_(LPE))) -> node_(LPE).
progress(Attrs, Children) ->
{element, <<"progress"/utf8>>, Attrs, Children}.
-spec progress_text(list(nakai@html@attrs:attr(LPK)), binary()) -> node_(LPK).
progress_text(Attrs, Text) ->
{element, <<"progress"/utf8>>, Attrs, [{text, Text}]}.
-spec q(list(nakai@html@attrs:attr(LPO)), list(node_(LPO))) -> node_(LPO).
q(Attrs, Children) ->
{element, <<"q"/utf8>>, Attrs, Children}.
-spec q_text(list(nakai@html@attrs:attr(LPU)), binary()) -> node_(LPU).
q_text(Attrs, Text) ->
{element, <<"q"/utf8>>, Attrs, [{text, Text}]}.
-spec rp(list(nakai@html@attrs:attr(LPY)), list(node_(LPY))) -> node_(LPY).
rp(Attrs, Children) ->
{element, <<"rp"/utf8>>, Attrs, Children}.
-spec rp_text(list(nakai@html@attrs:attr(LQE)), binary()) -> node_(LQE).
rp_text(Attrs, Text) ->
{element, <<"rp"/utf8>>, Attrs, [{text, Text}]}.
-spec rt(list(nakai@html@attrs:attr(LQI)), list(node_(LQI))) -> node_(LQI).
rt(Attrs, Children) ->
{element, <<"rt"/utf8>>, Attrs, Children}.
-spec rt_text(list(nakai@html@attrs:attr(LQO)), binary()) -> node_(LQO).
rt_text(Attrs, Text) ->
{element, <<"rt"/utf8>>, Attrs, [{text, Text}]}.
-spec ruby(list(nakai@html@attrs:attr(LQS)), list(node_(LQS))) -> node_(LQS).
ruby(Attrs, Children) ->
{element, <<"ruby"/utf8>>, Attrs, Children}.
-spec ruby_text(list(nakai@html@attrs:attr(LQY)), binary()) -> node_(LQY).
ruby_text(Attrs, Text) ->
{element, <<"ruby"/utf8>>, Attrs, [{text, Text}]}.
-spec s(list(nakai@html@attrs:attr(LRC)), list(node_(LRC))) -> node_(LRC).
s(Attrs, Children) ->
{element, <<"s"/utf8>>, Attrs, Children}.
-spec s_text(list(nakai@html@attrs:attr(LRI)), binary()) -> node_(LRI).
s_text(Attrs, Text) ->
{element, <<"s"/utf8>>, Attrs, [{text, Text}]}.
-spec samp(list(nakai@html@attrs:attr(LRM)), list(node_(LRM))) -> node_(LRM).
samp(Attrs, Children) ->
{element, <<"samp"/utf8>>, Attrs, Children}.
-spec samp_text(list(nakai@html@attrs:attr(LRS)), binary()) -> node_(LRS).
samp_text(Attrs, Text) ->
{element, <<"samp"/utf8>>, Attrs, [{text, Text}]}.
-spec section(list(nakai@html@attrs:attr(LRW)), list(node_(LRW))) -> node_(LRW).
section(Attrs, Children) ->
{element, <<"section"/utf8>>, Attrs, Children}.
-spec section_text(list(nakai@html@attrs:attr(LSC)), binary()) -> node_(LSC).
section_text(Attrs, Text) ->
{element, <<"section"/utf8>>, Attrs, [{text, Text}]}.
-spec select(list(nakai@html@attrs:attr(LSG)), list(node_(LSG))) -> node_(LSG).
select(Attrs, Children) ->
{element, <<"select"/utf8>>, Attrs, Children}.
-spec select_text(list(nakai@html@attrs:attr(LSM)), binary()) -> node_(LSM).
select_text(Attrs, Text) ->
{element, <<"select"/utf8>>, Attrs, [{text, Text}]}.
-spec small(list(nakai@html@attrs:attr(LSQ)), list(node_(LSQ))) -> node_(LSQ).
small(Attrs, Children) ->
{element, <<"small"/utf8>>, Attrs, Children}.
-spec small_text(list(nakai@html@attrs:attr(LSW)), binary()) -> node_(LSW).
small_text(Attrs, Text) ->
{element, <<"small"/utf8>>, Attrs, [{text, Text}]}.
-spec source(list(nakai@html@attrs:attr(LTA))) -> node_(LTA).
source(Attrs) ->
{leaf_element, <<"source"/utf8>>, Attrs}.
-spec span(list(nakai@html@attrs:attr(LTE)), list(node_(LTE))) -> node_(LTE).
span(Attrs, Children) ->
{element, <<"span"/utf8>>, Attrs, Children}.
-spec span_text(list(nakai@html@attrs:attr(LTK)), binary()) -> node_(LTK).
span_text(Attrs, Text) ->
{element, <<"span"/utf8>>, Attrs, [{text, Text}]}.
-spec strong(list(nakai@html@attrs:attr(LTO)), list(node_(LTO))) -> node_(LTO).
strong(Attrs, Children) ->
{element, <<"strong"/utf8>>, Attrs, Children}.
-spec strong_text(list(nakai@html@attrs:attr(LTU)), binary()) -> node_(LTU).
strong_text(Attrs, Text) ->
{element, <<"strong"/utf8>>, Attrs, [{text, Text}]}.
-spec sub(list(nakai@html@attrs:attr(LTY)), list(node_(LTY))) -> node_(LTY).
sub(Attrs, Children) ->
{element, <<"sub"/utf8>>, Attrs, Children}.
-spec sub_text(list(nakai@html@attrs:attr(LUE)), binary()) -> node_(LUE).
sub_text(Attrs, Text) ->
{element, <<"sub"/utf8>>, Attrs, [{text, Text}]}.
-spec summary(list(nakai@html@attrs:attr(LUI)), list(node_(LUI))) -> node_(LUI).
summary(Attrs, Children) ->
{element, <<"summary"/utf8>>, Attrs, Children}.
-spec summary_text(list(nakai@html@attrs:attr(LUO)), binary()) -> node_(LUO).
summary_text(Attrs, Text) ->
{element, <<"summary"/utf8>>, Attrs, [{text, Text}]}.
-spec sup(list(nakai@html@attrs:attr(LUS)), list(node_(LUS))) -> node_(LUS).
sup(Attrs, Children) ->
{element, <<"sup"/utf8>>, Attrs, Children}.
-spec sup_text(list(nakai@html@attrs:attr(LUY)), binary()) -> node_(LUY).
sup_text(Attrs, Text) ->
{element, <<"sup"/utf8>>, Attrs, [{text, Text}]}.
-spec svg(list(nakai@html@attrs:attr(LVC)), list(node_(LVC))) -> node_(LVC).
svg(Attrs, Children) ->
{element, <<"svg"/utf8>>, Attrs, Children}.
-spec svg_text(list(nakai@html@attrs:attr(LVI)), binary()) -> node_(LVI).
svg_text(Attrs, Text) ->
{element, <<"svg"/utf8>>, Attrs, [{text, Text}]}.
-spec table(list(nakai@html@attrs:attr(LVM)), list(node_(LVM))) -> node_(LVM).
table(Attrs, Children) ->
{element, <<"table"/utf8>>, Attrs, Children}.
-spec table_text(list(nakai@html@attrs:attr(LVS)), binary()) -> node_(LVS).
table_text(Attrs, Text) ->
{element, <<"table"/utf8>>, Attrs, [{text, Text}]}.
-spec tbody(list(nakai@html@attrs:attr(LVW)), list(node_(LVW))) -> node_(LVW).
tbody(Attrs, Children) ->
{element, <<"tbody"/utf8>>, Attrs, Children}.
-spec tbody_text(list(nakai@html@attrs:attr(LWC)), binary()) -> node_(LWC).
tbody_text(Attrs, Text) ->
{element, <<"tbody"/utf8>>, Attrs, [{text, Text}]}.
-spec td(list(nakai@html@attrs:attr(LWG)), list(node_(LWG))) -> node_(LWG).
td(Attrs, Children) ->
{element, <<"td"/utf8>>, Attrs, Children}.
-spec td_text(list(nakai@html@attrs:attr(LWM)), binary()) -> node_(LWM).
td_text(Attrs, Text) ->
{element, <<"td"/utf8>>, Attrs, [{text, Text}]}.
-spec textarea(list(nakai@html@attrs:attr(LWQ)), list(node_(LWQ))) -> node_(LWQ).
textarea(Attrs, Children) ->
{element, <<"textarea"/utf8>>, Attrs, Children}.
-spec textarea_text(list(nakai@html@attrs:attr(LWW)), binary()) -> node_(LWW).
textarea_text(Attrs, Text) ->
{element, <<"textarea"/utf8>>, Attrs, [{text, Text}]}.
-spec tfoot(list(nakai@html@attrs:attr(LXA)), list(node_(LXA))) -> node_(LXA).
tfoot(Attrs, Children) ->
{element, <<"tfoot"/utf8>>, Attrs, Children}.
-spec tfoot_text(list(nakai@html@attrs:attr(LXG)), binary()) -> node_(LXG).
tfoot_text(Attrs, Text) ->
{element, <<"tfoot"/utf8>>, Attrs, [{text, Text}]}.
-spec th(list(nakai@html@attrs:attr(LXK)), list(node_(LXK))) -> node_(LXK).
th(Attrs, Children) ->
{element, <<"th"/utf8>>, Attrs, Children}.
-spec th_text(list(nakai@html@attrs:attr(LXQ)), binary()) -> node_(LXQ).
th_text(Attrs, Text) ->
{element, <<"th"/utf8>>, Attrs, [{text, Text}]}.
-spec thead(list(nakai@html@attrs:attr(LXU)), list(node_(LXU))) -> node_(LXU).
thead(Attrs, Children) ->
{element, <<"thead"/utf8>>, Attrs, Children}.
-spec thead_text(list(nakai@html@attrs:attr(LYA)), binary()) -> node_(LYA).
thead_text(Attrs, Text) ->
{element, <<"thead"/utf8>>, Attrs, [{text, Text}]}.
-spec time(list(nakai@html@attrs:attr(LYE)), list(node_(LYE))) -> node_(LYE).
time(Attrs, Children) ->
{element, <<"time"/utf8>>, Attrs, Children}.
-spec time_text(list(nakai@html@attrs:attr(LYK)), binary()) -> node_(LYK).
time_text(Attrs, Text) ->
{element, <<"time"/utf8>>, Attrs, [{text, Text}]}.
-spec tr(list(nakai@html@attrs:attr(LYO)), list(node_(LYO))) -> node_(LYO).
tr(Attrs, Children) ->
{element, <<"tr"/utf8>>, Attrs, Children}.
-spec tr_text(list(nakai@html@attrs:attr(LYU)), binary()) -> node_(LYU).
tr_text(Attrs, Text) ->
{element, <<"tr"/utf8>>, Attrs, [{text, Text}]}.
-spec track(list(nakai@html@attrs:attr(LYY))) -> node_(LYY).
track(Attrs) ->
{leaf_element, <<"track"/utf8>>, Attrs}.
-spec u(list(nakai@html@attrs:attr(LZC)), list(node_(LZC))) -> node_(LZC).
u(Attrs, Children) ->
{element, <<"u"/utf8>>, Attrs, Children}.
-spec u_text(list(nakai@html@attrs:attr(LZI)), binary()) -> node_(LZI).
u_text(Attrs, Text) ->
{element, <<"u"/utf8>>, Attrs, [{text, Text}]}.
-spec ul(list(nakai@html@attrs:attr(LZM)), list(node_(LZM))) -> node_(LZM).
ul(Attrs, Children) ->
{element, <<"ul"/utf8>>, Attrs, Children}.
-spec ul_text(list(nakai@html@attrs:attr(LZS)), binary()) -> node_(LZS).
ul_text(Attrs, Text) ->
{element, <<"ul"/utf8>>, Attrs, [{text, Text}]}.
-spec var(list(nakai@html@attrs:attr(LZW)), list(node_(LZW))) -> node_(LZW).
var(Attrs, Children) ->
{element, <<"var"/utf8>>, Attrs, Children}.
-spec var_text(list(nakai@html@attrs:attr(MAC)), binary()) -> node_(MAC).
var_text(Attrs, Text) ->
{element, <<"var"/utf8>>, Attrs, [{text, Text}]}.
-spec video(list(nakai@html@attrs:attr(MAG)), list(node_(MAG))) -> node_(MAG).
video(Attrs, Children) ->
{element, <<"video"/utf8>>, Attrs, Children}.
-spec video_text(list(nakai@html@attrs:attr(MAM)), binary()) -> node_(MAM).
video_text(Attrs, Text) ->
{element, <<"video"/utf8>>, Attrs, [{text, Text}]}.
-spec wbr(list(nakai@html@attrs:attr(MAQ)), list(node_(MAQ))) -> node_(MAQ).
wbr(Attrs, Children) ->
{element, <<"wbr"/utf8>>, Attrs, Children}.
-spec wbr_text(list(nakai@html@attrs:attr(MAW)), binary()) -> node_(MAW).
wbr_text(Attrs, Text) ->
{element, <<"wbr"/utf8>>, Attrs, [{text, Text}]}.