Current section
Files
Jump to
Current section
Files
src/nakai@html.erl
-module(nakai@html).
-compile(no_auto_import).
-export([doctype/1, head/1, space/0, 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, body/2, body_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, title/2, title_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_(ELO) :: {head, list(node_(ELO))} |
{comment, binary()} |
{element, binary(), list(nakai@html@attrs:attr(ELO)), list(node_(ELO))} |
{leaf_element, binary(), list(nakai@html@attrs:attr(ELO))} |
{text, binary()} |
{component, fun(() -> node_(ELO))} |
{fragment, list(node_(ELO))} |
nothing.
-spec doctype(binary()) -> nakai@html@doctype:doctype().
doctype(Decl) ->
{doctype, Decl}.
-spec head(list(node_(ELW))) -> node_(ELW).
head(Children) ->
{head, Children}.
-spec space() -> node_(any()).
space() ->
{text, <<" "/utf8>>}.
-spec a(list(nakai@html@attrs:attr(EMC)), list(node_(EMC))) -> node_(EMC).
a(Attrs, Children) ->
{element, <<"a"/utf8>>, Attrs, Children}.
-spec a_text(list(nakai@html@attrs:attr(EMI)), binary()) -> node_(EMI).
a_text(Attrs, Text) ->
{element, <<"a"/utf8>>, Attrs, [{text, Text}]}.
-spec abbr(list(nakai@html@attrs:attr(EMM)), list(node_(EMM))) -> node_(EMM).
abbr(Attrs, Children) ->
{element, <<"abbr"/utf8>>, Attrs, Children}.
-spec abbr_text(list(nakai@html@attrs:attr(EMS)), binary()) -> node_(EMS).
abbr_text(Attrs, Text) ->
{element, <<"abbr"/utf8>>, Attrs, [{text, Text}]}.
-spec address(list(nakai@html@attrs:attr(EMW)), list(node_(EMW))) -> node_(EMW).
address(Attrs, Children) ->
{element, <<"address"/utf8>>, Attrs, Children}.
-spec address_text(list(nakai@html@attrs:attr(ENC)), binary()) -> node_(ENC).
address_text(Attrs, Text) ->
{element, <<"address"/utf8>>, Attrs, [{text, Text}]}.
-spec area(list(nakai@html@attrs:attr(ENG))) -> node_(ENG).
area(Attrs) ->
{leaf_element, <<"area"/utf8>>, Attrs}.
-spec article(list(nakai@html@attrs:attr(ENK)), list(node_(ENK))) -> node_(ENK).
article(Attrs, Children) ->
{element, <<"article"/utf8>>, Attrs, Children}.
-spec article_text(list(nakai@html@attrs:attr(ENQ)), binary()) -> node_(ENQ).
article_text(Attrs, Text) ->
{element, <<"article"/utf8>>, Attrs, [{text, Text}]}.
-spec aside(list(nakai@html@attrs:attr(ENU)), list(node_(ENU))) -> node_(ENU).
aside(Attrs, Children) ->
{element, <<"aside"/utf8>>, Attrs, Children}.
-spec aside_text(list(nakai@html@attrs:attr(EOA)), binary()) -> node_(EOA).
aside_text(Attrs, Text) ->
{element, <<"aside"/utf8>>, Attrs, [{text, Text}]}.
-spec audio(list(nakai@html@attrs:attr(EOE)), list(node_(EOE))) -> node_(EOE).
audio(Attrs, Children) ->
{element, <<"audio"/utf8>>, Attrs, Children}.
-spec audio_text(list(nakai@html@attrs:attr(EOK)), binary()) -> node_(EOK).
audio_text(Attrs, Text) ->
{element, <<"audio"/utf8>>, Attrs, [{text, Text}]}.
-spec b(list(nakai@html@attrs:attr(EOO)), list(node_(EOO))) -> node_(EOO).
b(Attrs, Children) ->
{element, <<"b"/utf8>>, Attrs, Children}.
-spec b_text(list(nakai@html@attrs:attr(EOU)), binary()) -> node_(EOU).
b_text(Attrs, Text) ->
{element, <<"b"/utf8>>, Attrs, [{text, Text}]}.
-spec base(list(nakai@html@attrs:attr(EOY))) -> node_(EOY).
base(Attrs) ->
{leaf_element, <<"base"/utf8>>, Attrs}.
-spec bdi(list(nakai@html@attrs:attr(EPC)), list(node_(EPC))) -> node_(EPC).
bdi(Attrs, Children) ->
{element, <<"bdi"/utf8>>, Attrs, Children}.
-spec bdi_text(list(nakai@html@attrs:attr(EPI)), binary()) -> node_(EPI).
bdi_text(Attrs, Text) ->
{element, <<"bdi"/utf8>>, Attrs, [{text, Text}]}.
-spec bdo(list(nakai@html@attrs:attr(EPM)), list(node_(EPM))) -> node_(EPM).
bdo(Attrs, Children) ->
{element, <<"bdo"/utf8>>, Attrs, Children}.
-spec bdo_text(list(nakai@html@attrs:attr(EPS)), binary()) -> node_(EPS).
bdo_text(Attrs, Text) ->
{element, <<"bdo"/utf8>>, Attrs, [{text, Text}]}.
-spec blockquote(list(nakai@html@attrs:attr(EPW)), list(node_(EPW))) -> node_(EPW).
blockquote(Attrs, Children) ->
{element, <<"blockquote"/utf8>>, Attrs, Children}.
-spec blockquote_text(list(nakai@html@attrs:attr(EQC)), binary()) -> node_(EQC).
blockquote_text(Attrs, Text) ->
{element, <<"blockquote"/utf8>>, Attrs, [{text, Text}]}.
-spec body(list(nakai@html@attrs:attr(EQG)), list(node_(EQG))) -> node_(EQG).
body(Attrs, Children) ->
{element, <<"body"/utf8>>, Attrs, Children}.
-spec body_text(list(nakai@html@attrs:attr(EQM)), binary()) -> node_(EQM).
body_text(Attrs, Text) ->
{element, <<"body"/utf8>>, Attrs, [{text, Text}]}.
-spec br(list(nakai@html@attrs:attr(EQQ))) -> node_(EQQ).
br(Attrs) ->
{leaf_element, <<"br"/utf8>>, Attrs}.
-spec button(list(nakai@html@attrs:attr(EQU)), list(node_(EQU))) -> node_(EQU).
button(Attrs, Children) ->
{element, <<"button"/utf8>>, Attrs, Children}.
-spec button_text(list(nakai@html@attrs:attr(ERA)), binary()) -> node_(ERA).
button_text(Attrs, Text) ->
{element, <<"button"/utf8>>, Attrs, [{text, Text}]}.
-spec canvas(list(nakai@html@attrs:attr(ERE)), list(node_(ERE))) -> node_(ERE).
canvas(Attrs, Children) ->
{element, <<"canvas"/utf8>>, Attrs, Children}.
-spec canvas_text(list(nakai@html@attrs:attr(ERK)), binary()) -> node_(ERK).
canvas_text(Attrs, Text) ->
{element, <<"canvas"/utf8>>, Attrs, [{text, Text}]}.
-spec caption(list(nakai@html@attrs:attr(ERO)), list(node_(ERO))) -> node_(ERO).
caption(Attrs, Children) ->
{element, <<"caption"/utf8>>, Attrs, Children}.
-spec caption_text(list(nakai@html@attrs:attr(ERU)), binary()) -> node_(ERU).
caption_text(Attrs, Text) ->
{element, <<"caption"/utf8>>, Attrs, [{text, Text}]}.
-spec cite(list(nakai@html@attrs:attr(ERY)), list(node_(ERY))) -> node_(ERY).
cite(Attrs, Children) ->
{element, <<"cite"/utf8>>, Attrs, Children}.
-spec cite_text(list(nakai@html@attrs:attr(ESE)), binary()) -> node_(ESE).
cite_text(Attrs, Text) ->
{element, <<"cite"/utf8>>, Attrs, [{text, Text}]}.
-spec code(list(nakai@html@attrs:attr(ESI)), list(node_(ESI))) -> node_(ESI).
code(Attrs, Children) ->
{element, <<"code"/utf8>>, Attrs, Children}.
-spec code_text(list(nakai@html@attrs:attr(ESO)), binary()) -> node_(ESO).
code_text(Attrs, Text) ->
{element, <<"code"/utf8>>, Attrs, [{text, Text}]}.
-spec col(list(nakai@html@attrs:attr(ESS)), list(node_(ESS))) -> node_(ESS).
col(Attrs, Children) ->
{element, <<"col"/utf8>>, Attrs, Children}.
-spec col_text(list(nakai@html@attrs:attr(ESY)), binary()) -> node_(ESY).
col_text(Attrs, Text) ->
{element, <<"col"/utf8>>, Attrs, [{text, Text}]}.
-spec colgroup(list(nakai@html@attrs:attr(ETC)), list(node_(ETC))) -> node_(ETC).
colgroup(Attrs, Children) ->
{element, <<"colgroup"/utf8>>, Attrs, Children}.
-spec colgroup_text(list(nakai@html@attrs:attr(ETI)), binary()) -> node_(ETI).
colgroup_text(Attrs, Text) ->
{element, <<"colgroup"/utf8>>, Attrs, [{text, Text}]}.
-spec data(list(nakai@html@attrs:attr(ETM)), list(node_(ETM))) -> node_(ETM).
data(Attrs, Children) ->
{element, <<"data"/utf8>>, Attrs, Children}.
-spec data_text(list(nakai@html@attrs:attr(ETS)), binary()) -> node_(ETS).
data_text(Attrs, Text) ->
{element, <<"data"/utf8>>, Attrs, [{text, Text}]}.
-spec datalist(list(nakai@html@attrs:attr(ETW)), list(node_(ETW))) -> node_(ETW).
datalist(Attrs, Children) ->
{element, <<"datalist"/utf8>>, Attrs, Children}.
-spec datalist_text(list(nakai@html@attrs:attr(EUC)), binary()) -> node_(EUC).
datalist_text(Attrs, Text) ->
{element, <<"datalist"/utf8>>, Attrs, [{text, Text}]}.
-spec dd(list(nakai@html@attrs:attr(EUG)), list(node_(EUG))) -> node_(EUG).
dd(Attrs, Children) ->
{element, <<"dd"/utf8>>, Attrs, Children}.
-spec dd_text(list(nakai@html@attrs:attr(EUM)), binary()) -> node_(EUM).
dd_text(Attrs, Text) ->
{element, <<"dd"/utf8>>, Attrs, [{text, Text}]}.
-spec del(list(nakai@html@attrs:attr(EUQ)), list(node_(EUQ))) -> node_(EUQ).
del(Attrs, Children) ->
{element, <<"del"/utf8>>, Attrs, Children}.
-spec del_text(list(nakai@html@attrs:attr(EUW)), binary()) -> node_(EUW).
del_text(Attrs, Text) ->
{element, <<"del"/utf8>>, Attrs, [{text, Text}]}.
-spec details(list(nakai@html@attrs:attr(EVA)), list(node_(EVA))) -> node_(EVA).
details(Attrs, Children) ->
{element, <<"details"/utf8>>, Attrs, Children}.
-spec details_text(list(nakai@html@attrs:attr(EVG)), binary()) -> node_(EVG).
details_text(Attrs, Text) ->
{element, <<"details"/utf8>>, Attrs, [{text, Text}]}.
-spec dfn(list(nakai@html@attrs:attr(EVK)), list(node_(EVK))) -> node_(EVK).
dfn(Attrs, Children) ->
{element, <<"dfn"/utf8>>, Attrs, Children}.
-spec dfn_text(list(nakai@html@attrs:attr(EVQ)), binary()) -> node_(EVQ).
dfn_text(Attrs, Text) ->
{element, <<"dfn"/utf8>>, Attrs, [{text, Text}]}.
-spec dialog(list(nakai@html@attrs:attr(EVU)), list(node_(EVU))) -> node_(EVU).
dialog(Attrs, Children) ->
{element, <<"dialog"/utf8>>, Attrs, Children}.
-spec dialog_text(list(nakai@html@attrs:attr(EWA)), binary()) -> node_(EWA).
dialog_text(Attrs, Text) ->
{element, <<"dialog"/utf8>>, Attrs, [{text, Text}]}.
-spec 'div'(list(nakai@html@attrs:attr(EWE)), list(node_(EWE))) -> node_(EWE).
'div'(Attrs, Children) ->
{element, <<"div"/utf8>>, Attrs, Children}.
-spec div_text(list(nakai@html@attrs:attr(EWK)), binary()) -> node_(EWK).
div_text(Attrs, Text) ->
{element, <<"div"/utf8>>, Attrs, [{text, Text}]}.
-spec dl(list(nakai@html@attrs:attr(EWO)), list(node_(EWO))) -> node_(EWO).
dl(Attrs, Children) ->
{element, <<"dl"/utf8>>, Attrs, Children}.
-spec dl_text(list(nakai@html@attrs:attr(EWU)), binary()) -> node_(EWU).
dl_text(Attrs, Text) ->
{element, <<"dl"/utf8>>, Attrs, [{text, Text}]}.
-spec dt(list(nakai@html@attrs:attr(EWY)), list(node_(EWY))) -> node_(EWY).
dt(Attrs, Children) ->
{element, <<"dt"/utf8>>, Attrs, Children}.
-spec dt_text(list(nakai@html@attrs:attr(EXE)), binary()) -> node_(EXE).
dt_text(Attrs, Text) ->
{element, <<"dt"/utf8>>, Attrs, [{text, Text}]}.
-spec em(list(nakai@html@attrs:attr(EXI)), list(node_(EXI))) -> node_(EXI).
em(Attrs, Children) ->
{element, <<"em"/utf8>>, Attrs, Children}.
-spec em_text(list(nakai@html@attrs:attr(EXO)), binary()) -> node_(EXO).
em_text(Attrs, Text) ->
{element, <<"em"/utf8>>, Attrs, [{text, Text}]}.
-spec embed(list(nakai@html@attrs:attr(EXS)), list(node_(EXS))) -> node_(EXS).
embed(Attrs, Children) ->
{element, <<"embed"/utf8>>, Attrs, Children}.
-spec embed_text(list(nakai@html@attrs:attr(EXY)), binary()) -> node_(EXY).
embed_text(Attrs, Text) ->
{element, <<"embed"/utf8>>, Attrs, [{text, Text}]}.
-spec fieldset(list(nakai@html@attrs:attr(EYC)), list(node_(EYC))) -> node_(EYC).
fieldset(Attrs, Children) ->
{element, <<"fieldset"/utf8>>, Attrs, Children}.
-spec fieldset_text(list(nakai@html@attrs:attr(EYI)), binary()) -> node_(EYI).
fieldset_text(Attrs, Text) ->
{element, <<"fieldset"/utf8>>, Attrs, [{text, Text}]}.
-spec figcaption(list(nakai@html@attrs:attr(EYM)), list(node_(EYM))) -> node_(EYM).
figcaption(Attrs, Children) ->
{element, <<"figcaption"/utf8>>, Attrs, Children}.
-spec figcaption_text(list(nakai@html@attrs:attr(EYS)), binary()) -> node_(EYS).
figcaption_text(Attrs, Text) ->
{element, <<"figcaption"/utf8>>, Attrs, [{text, Text}]}.
-spec figure(list(nakai@html@attrs:attr(EYW)), list(node_(EYW))) -> node_(EYW).
figure(Attrs, Children) ->
{element, <<"figure"/utf8>>, Attrs, Children}.
-spec figure_text(list(nakai@html@attrs:attr(EZC)), binary()) -> node_(EZC).
figure_text(Attrs, Text) ->
{element, <<"figure"/utf8>>, Attrs, [{text, Text}]}.
-spec footer(list(nakai@html@attrs:attr(EZG)), list(node_(EZG))) -> node_(EZG).
footer(Attrs, Children) ->
{element, <<"footer"/utf8>>, Attrs, Children}.
-spec footer_text(list(nakai@html@attrs:attr(EZM)), binary()) -> node_(EZM).
footer_text(Attrs, Text) ->
{element, <<"footer"/utf8>>, Attrs, [{text, Text}]}.
-spec form(list(nakai@html@attrs:attr(EZQ)), list(node_(EZQ))) -> node_(EZQ).
form(Attrs, Children) ->
{element, <<"form"/utf8>>, Attrs, Children}.
-spec form_text(list(nakai@html@attrs:attr(EZW)), binary()) -> node_(EZW).
form_text(Attrs, Text) ->
{element, <<"form"/utf8>>, Attrs, [{text, Text}]}.
-spec h1(list(nakai@html@attrs:attr(FAA)), list(node_(FAA))) -> node_(FAA).
h1(Attrs, Children) ->
{element, <<"h1"/utf8>>, Attrs, Children}.
-spec h1_text(list(nakai@html@attrs:attr(FAG)), binary()) -> node_(FAG).
h1_text(Attrs, Text) ->
{element, <<"h1"/utf8>>, Attrs, [{text, Text}]}.
-spec h2(list(nakai@html@attrs:attr(FAK)), list(node_(FAK))) -> node_(FAK).
h2(Attrs, Children) ->
{element, <<"h2"/utf8>>, Attrs, Children}.
-spec h2_text(list(nakai@html@attrs:attr(FAQ)), binary()) -> node_(FAQ).
h2_text(Attrs, Text) ->
{element, <<"h2"/utf8>>, Attrs, [{text, Text}]}.
-spec h3(list(nakai@html@attrs:attr(FAU)), list(node_(FAU))) -> node_(FAU).
h3(Attrs, Children) ->
{element, <<"h3"/utf8>>, Attrs, Children}.
-spec h3_text(list(nakai@html@attrs:attr(FBA)), binary()) -> node_(FBA).
h3_text(Attrs, Text) ->
{element, <<"h3"/utf8>>, Attrs, [{text, Text}]}.
-spec h4(list(nakai@html@attrs:attr(FBE)), list(node_(FBE))) -> node_(FBE).
h4(Attrs, Children) ->
{element, <<"h4"/utf8>>, Attrs, Children}.
-spec h4_text(list(nakai@html@attrs:attr(FBK)), binary()) -> node_(FBK).
h4_text(Attrs, Text) ->
{element, <<"h4"/utf8>>, Attrs, [{text, Text}]}.
-spec h5(list(nakai@html@attrs:attr(FBO)), list(node_(FBO))) -> node_(FBO).
h5(Attrs, Children) ->
{element, <<"h5"/utf8>>, Attrs, Children}.
-spec h5_text(list(nakai@html@attrs:attr(FBU)), binary()) -> node_(FBU).
h5_text(Attrs, Text) ->
{element, <<"h5"/utf8>>, Attrs, [{text, Text}]}.
-spec h6(list(nakai@html@attrs:attr(FBY)), list(node_(FBY))) -> node_(FBY).
h6(Attrs, Children) ->
{element, <<"h6"/utf8>>, Attrs, Children}.
-spec h6_text(list(nakai@html@attrs:attr(FCE)), binary()) -> node_(FCE).
h6_text(Attrs, Text) ->
{element, <<"h6"/utf8>>, Attrs, [{text, Text}]}.
-spec header(list(nakai@html@attrs:attr(FCI)), list(node_(FCI))) -> node_(FCI).
header(Attrs, Children) ->
{element, <<"header"/utf8>>, Attrs, Children}.
-spec header_text(list(nakai@html@attrs:attr(FCO)), binary()) -> node_(FCO).
header_text(Attrs, Text) ->
{element, <<"header"/utf8>>, Attrs, [{text, Text}]}.
-spec hr(list(nakai@html@attrs:attr(FCS))) -> node_(FCS).
hr(Attrs) ->
{leaf_element, <<"hr"/utf8>>, Attrs}.
-spec i(list(nakai@html@attrs:attr(FCW)), list(node_(FCW))) -> node_(FCW).
i(Attrs, Children) ->
{element, <<"i"/utf8>>, Attrs, Children}.
-spec i_text(list(nakai@html@attrs:attr(FDC)), binary()) -> node_(FDC).
i_text(Attrs, Text) ->
{element, <<"i"/utf8>>, Attrs, [{text, Text}]}.
-spec iframe(list(nakai@html@attrs:attr(FDG)), list(node_(FDG))) -> node_(FDG).
iframe(Attrs, Children) ->
{element, <<"iframe"/utf8>>, Attrs, Children}.
-spec iframe_text(list(nakai@html@attrs:attr(FDM)), binary()) -> node_(FDM).
iframe_text(Attrs, Text) ->
{element, <<"iframe"/utf8>>, Attrs, [{text, Text}]}.
-spec img(list(nakai@html@attrs:attr(FDQ))) -> node_(FDQ).
img(Attrs) ->
{leaf_element, <<"img"/utf8>>, Attrs}.
-spec input(list(nakai@html@attrs:attr(FDU))) -> node_(FDU).
input(Attrs) ->
{leaf_element, <<"input"/utf8>>, Attrs}.
-spec ins(list(nakai@html@attrs:attr(FDY)), list(node_(FDY))) -> node_(FDY).
ins(Attrs, Children) ->
{element, <<"ins"/utf8>>, Attrs, Children}.
-spec ins_text(list(nakai@html@attrs:attr(FEE)), binary()) -> node_(FEE).
ins_text(Attrs, Text) ->
{element, <<"ins"/utf8>>, Attrs, [{text, Text}]}.
-spec kbd(list(nakai@html@attrs:attr(FEI)), list(node_(FEI))) -> node_(FEI).
kbd(Attrs, Children) ->
{element, <<"kbd"/utf8>>, Attrs, Children}.
-spec kbd_text(list(nakai@html@attrs:attr(FEO)), binary()) -> node_(FEO).
kbd_text(Attrs, Text) ->
{element, <<"kbd"/utf8>>, Attrs, [{text, Text}]}.
-spec label(list(nakai@html@attrs:attr(FES)), list(node_(FES))) -> node_(FES).
label(Attrs, Children) ->
{element, <<"label"/utf8>>, Attrs, Children}.
-spec label_text(list(nakai@html@attrs:attr(FEY)), binary()) -> node_(FEY).
label_text(Attrs, Text) ->
{element, <<"label"/utf8>>, Attrs, [{text, Text}]}.
-spec legend(list(nakai@html@attrs:attr(FFC)), list(node_(FFC))) -> node_(FFC).
legend(Attrs, Children) ->
{element, <<"legend"/utf8>>, Attrs, Children}.
-spec legend_text(list(nakai@html@attrs:attr(FFI)), binary()) -> node_(FFI).
legend_text(Attrs, Text) ->
{element, <<"legend"/utf8>>, Attrs, [{text, Text}]}.
-spec li(list(nakai@html@attrs:attr(FFM)), list(node_(FFM))) -> node_(FFM).
li(Attrs, Children) ->
{element, <<"li"/utf8>>, Attrs, Children}.
-spec li_text(list(nakai@html@attrs:attr(FFS)), binary()) -> node_(FFS).
li_text(Attrs, Text) ->
{element, <<"li"/utf8>>, Attrs, [{text, Text}]}.
-spec link(list(nakai@html@attrs:attr(FFW))) -> node_(FFW).
link(Attrs) ->
{leaf_element, <<"link"/utf8>>, Attrs}.
-spec main(list(nakai@html@attrs:attr(FGA)), list(node_(FGA))) -> node_(FGA).
main(Attrs, Children) ->
{element, <<"main"/utf8>>, Attrs, Children}.
-spec main_text(list(nakai@html@attrs:attr(FGG)), binary()) -> node_(FGG).
main_text(Attrs, Text) ->
{element, <<"main"/utf8>>, Attrs, [{text, Text}]}.
-spec map(list(nakai@html@attrs:attr(FGK)), list(node_(FGK))) -> node_(FGK).
map(Attrs, Children) ->
{element, <<"map"/utf8>>, Attrs, Children}.
-spec map_text(list(nakai@html@attrs:attr(FGQ)), binary()) -> node_(FGQ).
map_text(Attrs, Text) ->
{element, <<"map"/utf8>>, Attrs, [{text, Text}]}.
-spec mark(list(nakai@html@attrs:attr(FGU)), list(node_(FGU))) -> node_(FGU).
mark(Attrs, Children) ->
{element, <<"mark"/utf8>>, Attrs, Children}.
-spec mark_text(list(nakai@html@attrs:attr(FHA)), binary()) -> node_(FHA).
mark_text(Attrs, Text) ->
{element, <<"mark"/utf8>>, Attrs, [{text, Text}]}.
-spec math(list(nakai@html@attrs:attr(FHE)), list(node_(FHE))) -> node_(FHE).
math(Attrs, Children) ->
{element, <<"math"/utf8>>, Attrs, Children}.
-spec math_text(list(nakai@html@attrs:attr(FHK)), binary()) -> node_(FHK).
math_text(Attrs, Text) ->
{element, <<"math"/utf8>>, Attrs, [{text, Text}]}.
-spec menu(list(nakai@html@attrs:attr(FHO)), list(node_(FHO))) -> node_(FHO).
menu(Attrs, Children) ->
{element, <<"menu"/utf8>>, Attrs, Children}.
-spec menu_text(list(nakai@html@attrs:attr(FHU)), binary()) -> node_(FHU).
menu_text(Attrs, Text) ->
{element, <<"menu"/utf8>>, Attrs, [{text, Text}]}.
-spec menuitem(list(nakai@html@attrs:attr(FHY)), list(node_(FHY))) -> node_(FHY).
menuitem(Attrs, Children) ->
{element, <<"menuitem"/utf8>>, Attrs, Children}.
-spec menuitem_text(list(nakai@html@attrs:attr(FIE)), binary()) -> node_(FIE).
menuitem_text(Attrs, Text) ->
{element, <<"menuitem"/utf8>>, Attrs, [{text, Text}]}.
-spec meta(list(nakai@html@attrs:attr(FII))) -> node_(FII).
meta(Attrs) ->
{leaf_element, <<"meta"/utf8>>, Attrs}.
-spec meter(list(nakai@html@attrs:attr(FIM)), list(node_(FIM))) -> node_(FIM).
meter(Attrs, Children) ->
{element, <<"meter"/utf8>>, Attrs, Children}.
-spec meter_text(list(nakai@html@attrs:attr(FIS)), binary()) -> node_(FIS).
meter_text(Attrs, Text) ->
{element, <<"meter"/utf8>>, Attrs, [{text, Text}]}.
-spec nav(list(nakai@html@attrs:attr(FIW)), list(node_(FIW))) -> node_(FIW).
nav(Attrs, Children) ->
{element, <<"nav"/utf8>>, Attrs, Children}.
-spec nav_text(list(nakai@html@attrs:attr(FJC)), binary()) -> node_(FJC).
nav_text(Attrs, Text) ->
{element, <<"nav"/utf8>>, Attrs, [{text, Text}]}.
-spec noscript(list(nakai@html@attrs:attr(FJG)), list(node_(FJG))) -> node_(FJG).
noscript(Attrs, Children) ->
{element, <<"noscript"/utf8>>, Attrs, Children}.
-spec noscript_text(list(nakai@html@attrs:attr(FJM)), binary()) -> node_(FJM).
noscript_text(Attrs, Text) ->
{element, <<"noscript"/utf8>>, Attrs, [{text, Text}]}.
-spec object(list(nakai@html@attrs:attr(FJQ)), list(node_(FJQ))) -> node_(FJQ).
object(Attrs, Children) ->
{element, <<"object"/utf8>>, Attrs, Children}.
-spec object_text(list(nakai@html@attrs:attr(FJW)), binary()) -> node_(FJW).
object_text(Attrs, Text) ->
{element, <<"object"/utf8>>, Attrs, [{text, Text}]}.
-spec ol(list(nakai@html@attrs:attr(FKA)), list(node_(FKA))) -> node_(FKA).
ol(Attrs, Children) ->
{element, <<"ol"/utf8>>, Attrs, Children}.
-spec ol_text(list(nakai@html@attrs:attr(FKG)), binary()) -> node_(FKG).
ol_text(Attrs, Text) ->
{element, <<"ol"/utf8>>, Attrs, [{text, Text}]}.
-spec optgroup(list(nakai@html@attrs:attr(FKK)), list(node_(FKK))) -> node_(FKK).
optgroup(Attrs, Children) ->
{element, <<"optgroup"/utf8>>, Attrs, Children}.
-spec optgroup_text(list(nakai@html@attrs:attr(FKQ)), binary()) -> node_(FKQ).
optgroup_text(Attrs, Text) ->
{element, <<"optgroup"/utf8>>, Attrs, [{text, Text}]}.
-spec option(list(nakai@html@attrs:attr(FKU)), list(node_(FKU))) -> node_(FKU).
option(Attrs, Children) ->
{element, <<"option"/utf8>>, Attrs, Children}.
-spec option_text(list(nakai@html@attrs:attr(FLA)), binary()) -> node_(FLA).
option_text(Attrs, Text) ->
{element, <<"option"/utf8>>, Attrs, [{text, Text}]}.
-spec output(list(nakai@html@attrs:attr(FLE)), list(node_(FLE))) -> node_(FLE).
output(Attrs, Children) ->
{element, <<"output"/utf8>>, Attrs, Children}.
-spec output_text(list(nakai@html@attrs:attr(FLK)), binary()) -> node_(FLK).
output_text(Attrs, Text) ->
{element, <<"output"/utf8>>, Attrs, [{text, Text}]}.
-spec p(list(nakai@html@attrs:attr(FLO)), list(node_(FLO))) -> node_(FLO).
p(Attrs, Children) ->
{element, <<"p"/utf8>>, Attrs, Children}.
-spec p_text(list(nakai@html@attrs:attr(FLU)), binary()) -> node_(FLU).
p_text(Attrs, Text) ->
{element, <<"p"/utf8>>, Attrs, [{text, Text}]}.
-spec param(list(nakai@html@attrs:attr(FLY)), list(node_(FLY))) -> node_(FLY).
param(Attrs, Children) ->
{element, <<"param"/utf8>>, Attrs, Children}.
-spec param_text(list(nakai@html@attrs:attr(FME)), binary()) -> node_(FME).
param_text(Attrs, Text) ->
{element, <<"param"/utf8>>, Attrs, [{text, Text}]}.
-spec picture(list(nakai@html@attrs:attr(FMI)), list(node_(FMI))) -> node_(FMI).
picture(Attrs, Children) ->
{element, <<"picture"/utf8>>, Attrs, Children}.
-spec picture_text(list(nakai@html@attrs:attr(FMO)), binary()) -> node_(FMO).
picture_text(Attrs, Text) ->
{element, <<"picture"/utf8>>, Attrs, [{text, Text}]}.
-spec pre(list(nakai@html@attrs:attr(FMS)), list(node_(FMS))) -> node_(FMS).
pre(Attrs, Children) ->
{element, <<"pre"/utf8>>, Attrs, Children}.
-spec pre_text(list(nakai@html@attrs:attr(FMY)), binary()) -> node_(FMY).
pre_text(Attrs, Text) ->
{element, <<"pre"/utf8>>, Attrs, [{text, Text}]}.
-spec progress(list(nakai@html@attrs:attr(FNC)), list(node_(FNC))) -> node_(FNC).
progress(Attrs, Children) ->
{element, <<"progress"/utf8>>, Attrs, Children}.
-spec progress_text(list(nakai@html@attrs:attr(FNI)), binary()) -> node_(FNI).
progress_text(Attrs, Text) ->
{element, <<"progress"/utf8>>, Attrs, [{text, Text}]}.
-spec q(list(nakai@html@attrs:attr(FNM)), list(node_(FNM))) -> node_(FNM).
q(Attrs, Children) ->
{element, <<"q"/utf8>>, Attrs, Children}.
-spec q_text(list(nakai@html@attrs:attr(FNS)), binary()) -> node_(FNS).
q_text(Attrs, Text) ->
{element, <<"q"/utf8>>, Attrs, [{text, Text}]}.
-spec rp(list(nakai@html@attrs:attr(FNW)), list(node_(FNW))) -> node_(FNW).
rp(Attrs, Children) ->
{element, <<"rp"/utf8>>, Attrs, Children}.
-spec rp_text(list(nakai@html@attrs:attr(FOC)), binary()) -> node_(FOC).
rp_text(Attrs, Text) ->
{element, <<"rp"/utf8>>, Attrs, [{text, Text}]}.
-spec rt(list(nakai@html@attrs:attr(FOG)), list(node_(FOG))) -> node_(FOG).
rt(Attrs, Children) ->
{element, <<"rt"/utf8>>, Attrs, Children}.
-spec rt_text(list(nakai@html@attrs:attr(FOM)), binary()) -> node_(FOM).
rt_text(Attrs, Text) ->
{element, <<"rt"/utf8>>, Attrs, [{text, Text}]}.
-spec ruby(list(nakai@html@attrs:attr(FOQ)), list(node_(FOQ))) -> node_(FOQ).
ruby(Attrs, Children) ->
{element, <<"ruby"/utf8>>, Attrs, Children}.
-spec ruby_text(list(nakai@html@attrs:attr(FOW)), binary()) -> node_(FOW).
ruby_text(Attrs, Text) ->
{element, <<"ruby"/utf8>>, Attrs, [{text, Text}]}.
-spec s(list(nakai@html@attrs:attr(FPA)), list(node_(FPA))) -> node_(FPA).
s(Attrs, Children) ->
{element, <<"s"/utf8>>, Attrs, Children}.
-spec s_text(list(nakai@html@attrs:attr(FPG)), binary()) -> node_(FPG).
s_text(Attrs, Text) ->
{element, <<"s"/utf8>>, Attrs, [{text, Text}]}.
-spec samp(list(nakai@html@attrs:attr(FPK)), list(node_(FPK))) -> node_(FPK).
samp(Attrs, Children) ->
{element, <<"samp"/utf8>>, Attrs, Children}.
-spec samp_text(list(nakai@html@attrs:attr(FPQ)), binary()) -> node_(FPQ).
samp_text(Attrs, Text) ->
{element, <<"samp"/utf8>>, Attrs, [{text, Text}]}.
-spec section(list(nakai@html@attrs:attr(FPU)), list(node_(FPU))) -> node_(FPU).
section(Attrs, Children) ->
{element, <<"section"/utf8>>, Attrs, Children}.
-spec section_text(list(nakai@html@attrs:attr(FQA)), binary()) -> node_(FQA).
section_text(Attrs, Text) ->
{element, <<"section"/utf8>>, Attrs, [{text, Text}]}.
-spec select(list(nakai@html@attrs:attr(FQE)), list(node_(FQE))) -> node_(FQE).
select(Attrs, Children) ->
{element, <<"select"/utf8>>, Attrs, Children}.
-spec select_text(list(nakai@html@attrs:attr(FQK)), binary()) -> node_(FQK).
select_text(Attrs, Text) ->
{element, <<"select"/utf8>>, Attrs, [{text, Text}]}.
-spec small(list(nakai@html@attrs:attr(FQO)), list(node_(FQO))) -> node_(FQO).
small(Attrs, Children) ->
{element, <<"small"/utf8>>, Attrs, Children}.
-spec small_text(list(nakai@html@attrs:attr(FQU)), binary()) -> node_(FQU).
small_text(Attrs, Text) ->
{element, <<"small"/utf8>>, Attrs, [{text, Text}]}.
-spec source(list(nakai@html@attrs:attr(FQY))) -> node_(FQY).
source(Attrs) ->
{leaf_element, <<"source"/utf8>>, Attrs}.
-spec span(list(nakai@html@attrs:attr(FRC)), list(node_(FRC))) -> node_(FRC).
span(Attrs, Children) ->
{element, <<"span"/utf8>>, Attrs, Children}.
-spec span_text(list(nakai@html@attrs:attr(FRI)), binary()) -> node_(FRI).
span_text(Attrs, Text) ->
{element, <<"span"/utf8>>, Attrs, [{text, Text}]}.
-spec strong(list(nakai@html@attrs:attr(FRM)), list(node_(FRM))) -> node_(FRM).
strong(Attrs, Children) ->
{element, <<"strong"/utf8>>, Attrs, Children}.
-spec strong_text(list(nakai@html@attrs:attr(FRS)), binary()) -> node_(FRS).
strong_text(Attrs, Text) ->
{element, <<"strong"/utf8>>, Attrs, [{text, Text}]}.
-spec sub(list(nakai@html@attrs:attr(FRW)), list(node_(FRW))) -> node_(FRW).
sub(Attrs, Children) ->
{element, <<"sub"/utf8>>, Attrs, Children}.
-spec sub_text(list(nakai@html@attrs:attr(FSC)), binary()) -> node_(FSC).
sub_text(Attrs, Text) ->
{element, <<"sub"/utf8>>, Attrs, [{text, Text}]}.
-spec summary(list(nakai@html@attrs:attr(FSG)), list(node_(FSG))) -> node_(FSG).
summary(Attrs, Children) ->
{element, <<"summary"/utf8>>, Attrs, Children}.
-spec summary_text(list(nakai@html@attrs:attr(FSM)), binary()) -> node_(FSM).
summary_text(Attrs, Text) ->
{element, <<"summary"/utf8>>, Attrs, [{text, Text}]}.
-spec sup(list(nakai@html@attrs:attr(FSQ)), list(node_(FSQ))) -> node_(FSQ).
sup(Attrs, Children) ->
{element, <<"sup"/utf8>>, Attrs, Children}.
-spec sup_text(list(nakai@html@attrs:attr(FSW)), binary()) -> node_(FSW).
sup_text(Attrs, Text) ->
{element, <<"sup"/utf8>>, Attrs, [{text, Text}]}.
-spec svg(list(nakai@html@attrs:attr(FTA)), list(node_(FTA))) -> node_(FTA).
svg(Attrs, Children) ->
{element, <<"svg"/utf8>>, Attrs, Children}.
-spec svg_text(list(nakai@html@attrs:attr(FTG)), binary()) -> node_(FTG).
svg_text(Attrs, Text) ->
{element, <<"svg"/utf8>>, Attrs, [{text, Text}]}.
-spec table(list(nakai@html@attrs:attr(FTK)), list(node_(FTK))) -> node_(FTK).
table(Attrs, Children) ->
{element, <<"table"/utf8>>, Attrs, Children}.
-spec table_text(list(nakai@html@attrs:attr(FTQ)), binary()) -> node_(FTQ).
table_text(Attrs, Text) ->
{element, <<"table"/utf8>>, Attrs, [{text, Text}]}.
-spec tbody(list(nakai@html@attrs:attr(FTU)), list(node_(FTU))) -> node_(FTU).
tbody(Attrs, Children) ->
{element, <<"tbody"/utf8>>, Attrs, Children}.
-spec tbody_text(list(nakai@html@attrs:attr(FUA)), binary()) -> node_(FUA).
tbody_text(Attrs, Text) ->
{element, <<"tbody"/utf8>>, Attrs, [{text, Text}]}.
-spec td(list(nakai@html@attrs:attr(FUE)), list(node_(FUE))) -> node_(FUE).
td(Attrs, Children) ->
{element, <<"td"/utf8>>, Attrs, Children}.
-spec td_text(list(nakai@html@attrs:attr(FUK)), binary()) -> node_(FUK).
td_text(Attrs, Text) ->
{element, <<"td"/utf8>>, Attrs, [{text, Text}]}.
-spec textarea(list(nakai@html@attrs:attr(FUO)), list(node_(FUO))) -> node_(FUO).
textarea(Attrs, Children) ->
{element, <<"textarea"/utf8>>, Attrs, Children}.
-spec textarea_text(list(nakai@html@attrs:attr(FUU)), binary()) -> node_(FUU).
textarea_text(Attrs, Text) ->
{element, <<"textarea"/utf8>>, Attrs, [{text, Text}]}.
-spec tfoot(list(nakai@html@attrs:attr(FUY)), list(node_(FUY))) -> node_(FUY).
tfoot(Attrs, Children) ->
{element, <<"tfoot"/utf8>>, Attrs, Children}.
-spec tfoot_text(list(nakai@html@attrs:attr(FVE)), binary()) -> node_(FVE).
tfoot_text(Attrs, Text) ->
{element, <<"tfoot"/utf8>>, Attrs, [{text, Text}]}.
-spec th(list(nakai@html@attrs:attr(FVI)), list(node_(FVI))) -> node_(FVI).
th(Attrs, Children) ->
{element, <<"th"/utf8>>, Attrs, Children}.
-spec th_text(list(nakai@html@attrs:attr(FVO)), binary()) -> node_(FVO).
th_text(Attrs, Text) ->
{element, <<"th"/utf8>>, Attrs, [{text, Text}]}.
-spec thead(list(nakai@html@attrs:attr(FVS)), list(node_(FVS))) -> node_(FVS).
thead(Attrs, Children) ->
{element, <<"thead"/utf8>>, Attrs, Children}.
-spec thead_text(list(nakai@html@attrs:attr(FVY)), binary()) -> node_(FVY).
thead_text(Attrs, Text) ->
{element, <<"thead"/utf8>>, Attrs, [{text, Text}]}.
-spec time(list(nakai@html@attrs:attr(FWC)), list(node_(FWC))) -> node_(FWC).
time(Attrs, Children) ->
{element, <<"time"/utf8>>, Attrs, Children}.
-spec time_text(list(nakai@html@attrs:attr(FWI)), binary()) -> node_(FWI).
time_text(Attrs, Text) ->
{element, <<"time"/utf8>>, Attrs, [{text, Text}]}.
-spec title(list(nakai@html@attrs:attr(FWM)), list(node_(FWM))) -> node_(FWM).
title(Attrs, Children) ->
{element, <<"title"/utf8>>, Attrs, Children}.
-spec title_text(list(nakai@html@attrs:attr(FWS)), binary()) -> node_(FWS).
title_text(Attrs, Text) ->
{element, <<"title"/utf8>>, Attrs, [{text, Text}]}.
-spec tr(list(nakai@html@attrs:attr(FWW)), list(node_(FWW))) -> node_(FWW).
tr(Attrs, Children) ->
{element, <<"tr"/utf8>>, Attrs, Children}.
-spec tr_text(list(nakai@html@attrs:attr(FXC)), binary()) -> node_(FXC).
tr_text(Attrs, Text) ->
{element, <<"tr"/utf8>>, Attrs, [{text, Text}]}.
-spec track(list(nakai@html@attrs:attr(FXG))) -> node_(FXG).
track(Attrs) ->
{leaf_element, <<"track"/utf8>>, Attrs}.
-spec u(list(nakai@html@attrs:attr(FXK)), list(node_(FXK))) -> node_(FXK).
u(Attrs, Children) ->
{element, <<"u"/utf8>>, Attrs, Children}.
-spec u_text(list(nakai@html@attrs:attr(FXQ)), binary()) -> node_(FXQ).
u_text(Attrs, Text) ->
{element, <<"u"/utf8>>, Attrs, [{text, Text}]}.
-spec ul(list(nakai@html@attrs:attr(FXU)), list(node_(FXU))) -> node_(FXU).
ul(Attrs, Children) ->
{element, <<"ul"/utf8>>, Attrs, Children}.
-spec ul_text(list(nakai@html@attrs:attr(FYA)), binary()) -> node_(FYA).
ul_text(Attrs, Text) ->
{element, <<"ul"/utf8>>, Attrs, [{text, Text}]}.
-spec var(list(nakai@html@attrs:attr(FYE)), list(node_(FYE))) -> node_(FYE).
var(Attrs, Children) ->
{element, <<"var"/utf8>>, Attrs, Children}.
-spec var_text(list(nakai@html@attrs:attr(FYK)), binary()) -> node_(FYK).
var_text(Attrs, Text) ->
{element, <<"var"/utf8>>, Attrs, [{text, Text}]}.
-spec video(list(nakai@html@attrs:attr(FYO)), list(node_(FYO))) -> node_(FYO).
video(Attrs, Children) ->
{element, <<"video"/utf8>>, Attrs, Children}.
-spec video_text(list(nakai@html@attrs:attr(FYU)), binary()) -> node_(FYU).
video_text(Attrs, Text) ->
{element, <<"video"/utf8>>, Attrs, [{text, Text}]}.
-spec wbr(list(nakai@html@attrs:attr(FYY)), list(node_(FYY))) -> node_(FYY).
wbr(Attrs, Children) ->
{element, <<"wbr"/utf8>>, Attrs, Children}.
-spec wbr_text(list(nakai@html@attrs:attr(FZE)), binary()) -> node_(FZE).
wbr_text(Attrs, Text) ->
{element, <<"wbr"/utf8>>, Attrs, [{text, Text}]}.