From 19b12582d013c85028da79937fc9669521347694 Mon Sep 17 00:00:00 2001 From: Severn Everett Date: Fri, 2 Jun 2023 10:31:30 +0200 Subject: [PATCH 1/2] Added loading attribute to img tag; Added warning suppression for capitalizing enum names --- .../kotlin/kotlinx/html/generate/rules.kt | 4 +- buildSrc/src/main/resources/html_5.xsd | 8 + .../kotlin/generated/gen-attributes.kt | 2 + .../kotlin/generated/gen-consumer-tags.kt | 752 +++------------- src/commonMain/kotlin/generated/gen-enums.kt | 9 + .../kotlin/generated/gen-tag-unions.kt | 6 +- src/commonMain/kotlin/generated/gen-tags-i.kt | 4 + src/commonMain/kotlin/generated/gen-tags-p.kt | 6 +- .../kotlin/generated/gen-consumer-tags-js.kt | 825 +++--------------- 9 files changed, 306 insertions(+), 1310 deletions(-) diff --git a/buildSrc/src/main/kotlin/kotlinx/html/generate/rules.kt b/buildSrc/src/main/kotlin/kotlinx/html/generate/rules.kt index 954a8958..a8beced2 100644 --- a/buildSrc/src/main/kotlin/kotlinx/html/generate/rules.kt +++ b/buildSrc/src/main/kotlin/kotlinx/html/generate/rules.kt @@ -56,7 +56,7 @@ val specialTypes = listOf( ).groupBy { it.first }.mapValues { it.value.single().second } fun specialTypeFor(tagName: String, attributeName: String): AttributeType? = - specialTypes[tagName + "." + attributeName] ?: specialTypes["*." + attributeName] + specialTypes["$tagName.$attributeName"] ?: specialTypes["*.$attributeName"] val wellKnownWords = listOf("span", "class", "enabled?", "edit(able)?", "^on", "encoded?", "form", "type", @@ -67,7 +67,7 @@ val wellKnownWords = listOf("span", "class", "enabled?", "edit(able)?", "click", "play(ing)?", "context", "rows?", "cols?", "group(ed)?", "auto", "list", "field", "data", "block", "scripts?", - "item", "area", "length", "colors?", "suspend", "focus", "touch" + "item", "area", "length", "colors?", "suspend", "focus", "touch", "loading" ).map { it.toRegex(RegexOption.IGNORE_CASE) } val excludeAttributes = listOf("^item$").map { Pattern.compile(it, Pattern.CASE_INSENSITIVE) } diff --git a/buildSrc/src/main/resources/html_5.xsd b/buildSrc/src/main/resources/html_5.xsd index 52df735a..76da29e5 100644 --- a/buildSrc/src/main/resources/html_5.xsd +++ b/buildSrc/src/main/resources/html_5.xsd @@ -981,6 +981,14 @@ + + + + + + + + diff --git a/src/commonMain/kotlin/generated/gen-attributes.kt b/src/commonMain/kotlin/generated/gen-attributes.kt index f2125a26..ad0b0dd8 100644 --- a/src/commonMain/kotlin/generated/gen-attributes.kt +++ b/src/commonMain/kotlin/generated/gen-attributes.kt @@ -36,6 +36,8 @@ internal val attributeFormMethodEnumFormMethodValues : Attribute = E internal val attributeIframeSandboxEnumIframeSandboxValues : Attribute = EnumAttribute(iframeSandboxValues) +internal val attributeImgLoadingEnumImgLoadingValues : Attribute = EnumAttribute(imgLoadingValues) + internal val attributeInputFormEncTypeEnumInputFormEncTypeValues : Attribute = EnumAttribute(inputFormEncTypeValues) internal val attributeInputFormMethodEnumInputFormMethodValues : Attribute = EnumAttribute(inputFormMethodValues) diff --git a/src/commonMain/kotlin/generated/gen-consumer-tags.kt b/src/commonMain/kotlin/generated/gen-consumer-tags.kt index 3c451377..9a320bf2 100644 --- a/src/commonMain/kotlin/generated/gen-consumer-tags.kt +++ b/src/commonMain/kotlin/generated/gen-consumer-tags.kt @@ -1,1189 +1,707 @@ -/******************************************************************************* - DO NOT EDIT - This file was generated by module generate -*******************************************************************************/ package kotlinx.html import kotlinx.html.* +import kotlinx.html.impl.* import kotlinx.html.attributes.* -import kotlin.Deprecated -import kotlin.String -import kotlin.Suppress -import kotlin.Unit -import kotlinx.html.A -import kotlinx.html.ABBR -import kotlinx.html.ADDRESS -import kotlinx.html.AREA -import kotlinx.html.ARTICLE -import kotlinx.html.ASIDE -import kotlinx.html.AUDIO -import kotlinx.html.AreaShape -import kotlinx.html.B -import kotlinx.html.BASE -import kotlinx.html.BDI -import kotlinx.html.BDO -import kotlinx.html.BLOCKQUOTE -import kotlinx.html.BODY -import kotlinx.html.BR -import kotlinx.html.BUTTON -import kotlinx.html.ButtonFormEncType -import kotlinx.html.ButtonFormMethod -import kotlinx.html.ButtonType -import kotlinx.html.CANVAS -import kotlinx.html.CAPTION -import kotlinx.html.CITE -import kotlinx.html.CODE -import kotlinx.html.COL -import kotlinx.html.COLGROUP -import kotlinx.html.COMMAND -import kotlinx.html.CommandType -import kotlinx.html.DATALIST -import kotlinx.html.DD -import kotlinx.html.DEL -import kotlinx.html.DETAILS -import kotlinx.html.DFN -import kotlinx.html.DIALOG -import kotlinx.html.DIV -import kotlinx.html.DL -import kotlinx.html.DT -import kotlinx.html.EM -import kotlinx.html.EMBED -import kotlinx.html.FIELDSET -import kotlinx.html.FIGCAPTION -import kotlinx.html.FIGURE -import kotlinx.html.FOOTER -import kotlinx.html.FORM -import kotlinx.html.FormEncType -import kotlinx.html.FormMethod -import kotlinx.html.H1 -import kotlinx.html.H2 -import kotlinx.html.H3 -import kotlinx.html.H4 -import kotlinx.html.H5 -import kotlinx.html.H6 -import kotlinx.html.HEAD -import kotlinx.html.HEADER -import kotlinx.html.HGROUP -import kotlinx.html.HR -import kotlinx.html.HTML -import kotlinx.html.HtmlTagMarker -import kotlinx.html.I -import kotlinx.html.IFRAME -import kotlinx.html.IMG -import kotlinx.html.INPUT -import kotlinx.html.INS -import kotlinx.html.IframeSandbox -import kotlinx.html.InputFormEncType -import kotlinx.html.InputFormMethod -import kotlinx.html.InputType -import kotlinx.html.KBD -import kotlinx.html.KEYGEN -import kotlinx.html.KeyGenKeyType -import kotlinx.html.LABEL -import kotlinx.html.LEGEND -import kotlinx.html.LI -import kotlinx.html.LINK -import kotlinx.html.MAIN -import kotlinx.html.MAP -import kotlinx.html.MARK -import kotlinx.html.MATH -import kotlinx.html.MATHML -import kotlinx.html.META -import kotlinx.html.METER -import kotlinx.html.NAV -import kotlinx.html.NOSCRIPT -import kotlinx.html.OBJECT -import kotlinx.html.OL -import kotlinx.html.OPTGROUP -import kotlinx.html.OPTION -import kotlinx.html.OUTPUT -import kotlinx.html.P -import kotlinx.html.PARAM -import kotlinx.html.PICTURE -import kotlinx.html.PRE -import kotlinx.html.PROGRESS -import kotlinx.html.Q -import kotlinx.html.RP -import kotlinx.html.RT -import kotlinx.html.RUBY -import kotlinx.html.S -import kotlinx.html.SAMP -import kotlinx.html.SCRIPT -import kotlinx.html.SECTION -import kotlinx.html.SELECT -import kotlinx.html.SMALL -import kotlinx.html.SOURCE -import kotlinx.html.SPAN -import kotlinx.html.STRONG -import kotlinx.html.STYLE -import kotlinx.html.SUB -import kotlinx.html.SUMMARY -import kotlinx.html.SUP -import kotlinx.html.SVG -import kotlinx.html.ScriptCrossorigin -import kotlinx.html.TABLE -import kotlinx.html.TBODY -import kotlinx.html.TD -import kotlinx.html.TEXTAREA -import kotlinx.html.TFOOT -import kotlinx.html.TH -import kotlinx.html.THEAD -import kotlinx.html.TIME -import kotlinx.html.TITLE -import kotlinx.html.TR -import kotlinx.html.TagConsumer -import kotlinx.html.TextAreaWrap -import kotlinx.html.ThScope -import kotlinx.html.U -import kotlinx.html.UL -import kotlinx.html.VAR -import kotlinx.html.VIDEO +/******************************************************************************* + DO NOT EDIT + This file was generated by module generate +*******************************************************************************/ /** * Anchor */ @HtmlTagMarker -public inline fun > C.a( - href: String? = null, - target: String? = null, - classes: String? = null, - crossinline block: A.() -> Unit = {}, -): T = A(attributesMapOf("href", href,"target", target,"class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.a(href : String? = null, target : String? = null, classes : String? = null, crossinline block : A.() -> Unit = {}) : T = A(attributesMapOf("href", href,"target", target,"class", classes), this).visitAndFinalize(this, block) /** * Abbreviated form (e.g., WWW, HTTP,etc.) */ @HtmlTagMarker -public inline fun > C.abbr(classes: String? = null, crossinline - block: ABBR.() -> Unit = {}): T = ABBR(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.abbr(classes : String? = null, crossinline block : ABBR.() -> Unit = {}) : T = ABBR(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Information on author */ @HtmlTagMarker -public inline fun > C.address(classes: String? = null, crossinline - block: ADDRESS.() -> Unit = {}): T = ADDRESS(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.address(classes : String? = null, crossinline block : ADDRESS.() -> Unit = {}) : T = ADDRESS(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Client-side image map area */ @HtmlTagMarker -public inline fun > C.area( - shape: AreaShape? = null, - alt: String? = null, - classes: String? = null, - crossinline block: AREA.() -> Unit = {}, -): T = AREA(attributesMapOf("Shape", shape?.enumEncode(),"alt", alt,"class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.area(shape : AreaShape? = null, alt : String? = null, classes : String? = null, crossinline block : AREA.() -> Unit = {}) : T = AREA(attributesMapOf("Shape", shape?.enumEncode(),"alt", alt,"class", classes), this).visitAndFinalize(this, block) /** * Self-contained syndicatable or reusable composition */ @HtmlTagMarker -public inline fun > C.article(classes: String? = null, crossinline - block: ARTICLE.() -> Unit = {}): T = ARTICLE(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.article(classes : String? = null, crossinline block : ARTICLE.() -> Unit = {}) : T = ARTICLE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Sidebar for tangentially related content */ @HtmlTagMarker -public inline fun > C.aside(classes: String? = null, crossinline - block: ASIDE.() -> Unit = {}): T = ASIDE(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.aside(classes : String? = null, crossinline block : ASIDE.() -> Unit = {}) : T = ASIDE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Audio player */ @HtmlTagMarker -public inline fun > C.audio(classes: String? = null, crossinline - block: AUDIO.() -> Unit = {}): T = AUDIO(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.audio(classes : String? = null, crossinline block : AUDIO.() -> Unit = {}) : T = AUDIO(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Bold text style */ @HtmlTagMarker -public inline fun > C.b(classes: String? = null, crossinline - block: B.() -> Unit = {}): T = B(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.b(classes : String? = null, crossinline block : B.() -> Unit = {}) : T = B(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Document base URI */ @HtmlTagMarker -public inline fun > C.base(classes: String? = null, crossinline - block: BASE.() -> Unit = {}): T = BASE(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.base(classes : String? = null, crossinline block : BASE.() -> Unit = {}) : T = BASE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Text directionality isolation */ @HtmlTagMarker -public inline fun > C.bdi(classes: String? = null, crossinline - block: BDI.() -> Unit = {}): T = BDI(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.bdi(classes : String? = null, crossinline block : BDI.() -> Unit = {}) : T = BDI(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * I18N BiDi over-ride */ @HtmlTagMarker -public inline fun > C.bdo(classes: String? = null, crossinline - block: BDO.() -> Unit = {}): T = BDO(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.bdo(classes : String? = null, crossinline block : BDO.() -> Unit = {}) : T = BDO(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Long quotation */ @HtmlTagMarker -public inline fun > C.blockQuote(classes: String? = null, crossinline - block: BLOCKQUOTE.() -> Unit = {}): T = BLOCKQUOTE(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.blockQuote(classes : String? = null, crossinline block : BLOCKQUOTE.() -> Unit = {}) : T = BLOCKQUOTE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Document body */ @HtmlTagMarker -public inline fun > C.body(classes: String? = null, crossinline - block: BODY.() -> Unit = {}): T = BODY(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.body(classes : String? = null, crossinline block : BODY.() -> Unit = {}) : T = BODY(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Forced line break */ @HtmlTagMarker -public inline fun > C.br(classes: String? = null, crossinline - block: BR.() -> Unit = {}): T = BR(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.br(classes : String? = null, crossinline block : BR.() -> Unit = {}) : T = BR(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Push button */ @HtmlTagMarker -public inline fun > C.button( - formEncType: ButtonFormEncType? = null, - formMethod: ButtonFormMethod? = null, - name: String? = null, - type: ButtonType? = null, - classes: String? = null, - crossinline block: BUTTON.() -> Unit = {}, -): T = BUTTON(attributesMapOf("formenctype", formEncType?.enumEncode(),"formmethod", - formMethod?.enumEncode(),"name", name,"type", type?.enumEncode(),"class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.button(formEncType : ButtonFormEncType? = null, formMethod : ButtonFormMethod? = null, name : String? = null, type : ButtonType? = null, classes : String? = null, crossinline block : BUTTON.() -> Unit = {}) : T = BUTTON(attributesMapOf("formenctype", formEncType?.enumEncode(),"formmethod", formMethod?.enumEncode(),"name", name,"type", type?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) /** * Scriptable bitmap canvas */ @HtmlTagMarker -public fun > C.canvas(classes: String? = null, content: String = ""): T = - CANVAS(attributesMapOf("class", classes), this) - .visitAndFinalize(this, {+content}) - +fun > C.canvas(classes : String? = null, content : String = "") : T = CANVAS(attributesMapOf("class", classes), this).visitAndFinalize(this, {+content}) /** * Scriptable bitmap canvas */ @HtmlTagMarker -public inline fun > C.canvas(classes: String? = null, crossinline - block: CANVAS.() -> Unit = {}): T = CANVAS(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.canvas(classes : String? = null, crossinline block : CANVAS.() -> Unit = {}) : T = CANVAS(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Table caption */ @HtmlTagMarker -public inline fun > C.caption(classes: String? = null, crossinline - block: CAPTION.() -> Unit = {}): T = CAPTION(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.caption(classes : String? = null, crossinline block : CAPTION.() -> Unit = {}) : T = CAPTION(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Citation */ @HtmlTagMarker -public inline fun > C.cite(classes: String? = null, crossinline - block: CITE.() -> Unit = {}): T = CITE(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.cite(classes : String? = null, crossinline block : CITE.() -> Unit = {}) : T = CITE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Computer code fragment */ @HtmlTagMarker -public inline fun > C.code(classes: String? = null, crossinline - block: CODE.() -> Unit = {}): T = CODE(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.code(classes : String? = null, crossinline block : CODE.() -> Unit = {}) : T = CODE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Table column */ @HtmlTagMarker -public inline fun > C.col(classes: String? = null, crossinline - block: COL.() -> Unit = {}): T = COL(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.col(classes : String? = null, crossinline block : COL.() -> Unit = {}) : T = COL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Table column group */ @HtmlTagMarker -public inline fun > C.colGroup(classes: String? = null, crossinline - block: COLGROUP.() -> Unit = {}): T = COLGROUP(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.colGroup(classes : String? = null, crossinline block : COLGROUP.() -> Unit = {}) : T = COLGROUP(attributesMapOf("class", classes), this).visitAndFinalize(this, block) @HtmlTagMarker -public inline fun > C.command( - type: CommandType? = null, - classes: String? = null, - crossinline block: COMMAND.() -> Unit = {}, -): T = COMMAND(attributesMapOf("type", type?.enumEncode(),"class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.command(type : CommandType? = null, classes : String? = null, crossinline block : COMMAND.() -> Unit = {}) : T = COMMAND(attributesMapOf("type", type?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) /** * Container for options for */ @HtmlTagMarker -public inline fun > C.dataList(classes: String? = null, crossinline - block: DATALIST.() -> Unit = {}): T = DATALIST(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.dataList(classes : String? = null, crossinline block : DATALIST.() -> Unit = {}) : T = DATALIST(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Definition description */ @HtmlTagMarker -public inline fun > C.dd(classes: String? = null, crossinline - block: DD.() -> Unit = {}): T = DD(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.dd(classes : String? = null, crossinline block : DD.() -> Unit = {}) : T = DD(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Deleted text */ @HtmlTagMarker -public inline fun > C.del(classes: String? = null, crossinline - block: DEL.() -> Unit = {}): T = DEL(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.del(classes : String? = null, crossinline block : DEL.() -> Unit = {}) : T = DEL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Disclosure control for hiding details */ @HtmlTagMarker -public inline fun > C.details(classes: String? = null, crossinline - block: DETAILS.() -> Unit = {}): T = DETAILS(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.details(classes : String? = null, crossinline block : DETAILS.() -> Unit = {}) : T = DETAILS(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Instance definition */ @HtmlTagMarker -public inline fun > C.dfn(classes: String? = null, crossinline - block: DFN.() -> Unit = {}): T = DFN(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.dfn(classes : String? = null, crossinline block : DFN.() -> Unit = {}) : T = DFN(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Dialog box or window */ @HtmlTagMarker -public inline fun > C.dialog(classes: String? = null, crossinline - block: DIALOG.() -> Unit = {}): T = DIALOG(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.dialog(classes : String? = null, crossinline block : DIALOG.() -> Unit = {}) : T = DIALOG(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Generic language/style container */ @HtmlTagMarker -public inline fun > C.div(classes: String? = null, crossinline - block: DIV.() -> Unit = {}): T = DIV(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.div(classes : String? = null, crossinline block : DIV.() -> Unit = {}) : T = DIV(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Definition list */ @HtmlTagMarker -public inline fun > C.dl(classes: String? = null, crossinline - block: DL.() -> Unit = {}): T = DL(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.dl(classes : String? = null, crossinline block : DL.() -> Unit = {}) : T = DL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Definition term */ @HtmlTagMarker -public inline fun > C.dt(classes: String? = null, crossinline - block: DT.() -> Unit = {}): T = DT(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.dt(classes : String? = null, crossinline block : DT.() -> Unit = {}) : T = DT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Emphasis */ @HtmlTagMarker -public inline fun > C.em(classes: String? = null, crossinline - block: EM.() -> Unit = {}): T = EM(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.em(classes : String? = null, crossinline block : EM.() -> Unit = {}) : T = EM(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Plugin */ @HtmlTagMarker -public inline fun > C.embed(classes: String? = null, crossinline - block: EMBED.() -> Unit = {}): T = EMBED(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.embed(classes : String? = null, crossinline block : EMBED.() -> Unit = {}) : T = EMBED(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Form control group */ @HtmlTagMarker -public inline fun > C.fieldSet(classes: String? = null, crossinline - block: FIELDSET.() -> Unit = {}): T = FIELDSET(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.fieldSet(classes : String? = null, crossinline block : FIELDSET.() -> Unit = {}) : T = FIELDSET(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Caption for */ @HtmlTagMarker -public inline fun > C.figcaption(classes: String? = null, crossinline - block: FIGCAPTION.() -> Unit = {}): T = FIGCAPTION(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.figcaption(classes : String? = null, crossinline block : FIGCAPTION.() -> Unit = {}) : T = FIGCAPTION(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Figure with optional caption */ @HtmlTagMarker -public inline fun > C.figure(classes: String? = null, crossinline - block: FIGURE.() -> Unit = {}): T = FIGURE(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.figure(classes : String? = null, crossinline block : FIGURE.() -> Unit = {}) : T = FIGURE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Footer for a page or section */ @HtmlTagMarker -public inline fun > C.footer(classes: String? = null, crossinline - block: FOOTER.() -> Unit = {}): T = FOOTER(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.footer(classes : String? = null, crossinline block : FOOTER.() -> Unit = {}) : T = FOOTER(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Interactive form */ @HtmlTagMarker -public inline fun > C.form( - action: String? = null, - encType: FormEncType? = null, - method: FormMethod? = null, - classes: String? = null, - crossinline block: FORM.() -> Unit = {}, -): T = FORM(attributesMapOf("action", action,"enctype", encType?.enumEncode(),"method", - method?.enumEncode(),"class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.form(action : String? = null, encType : FormEncType? = null, method : FormMethod? = null, classes : String? = null, crossinline block : FORM.() -> Unit = {}) : T = FORM(attributesMapOf("action", action,"enctype", encType?.enumEncode(),"method", method?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) /** * Heading */ @HtmlTagMarker -public inline fun > C.h1(classes: String? = null, crossinline - block: H1.() -> Unit = {}): T = H1(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.h1(classes : String? = null, crossinline block : H1.() -> Unit = {}) : T = H1(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Heading */ @HtmlTagMarker -public inline fun > C.h2(classes: String? = null, crossinline - block: H2.() -> Unit = {}): T = H2(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.h2(classes : String? = null, crossinline block : H2.() -> Unit = {}) : T = H2(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Heading */ @HtmlTagMarker -public inline fun > C.h3(classes: String? = null, crossinline - block: H3.() -> Unit = {}): T = H3(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.h3(classes : String? = null, crossinline block : H3.() -> Unit = {}) : T = H3(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Heading */ @HtmlTagMarker -public inline fun > C.h4(classes: String? = null, crossinline - block: H4.() -> Unit = {}): T = H4(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.h4(classes : String? = null, crossinline block : H4.() -> Unit = {}) : T = H4(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Heading */ @HtmlTagMarker -public inline fun > C.h5(classes: String? = null, crossinline - block: H5.() -> Unit = {}): T = H5(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.h5(classes : String? = null, crossinline block : H5.() -> Unit = {}) : T = H5(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Heading */ @HtmlTagMarker -public inline fun > C.h6(classes: String? = null, crossinline - block: H6.() -> Unit = {}): T = H6(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.h6(classes : String? = null, crossinline block : H6.() -> Unit = {}) : T = H6(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") +@Suppress("DEPRECATION") /** * Document head */ @HtmlTagMarker -@Suppress("DEPRECATION") -@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") -public fun > C.head(content: String = ""): T = HEAD(emptyMap, this) - .visitAndFinalize(this, {+content}) - +fun > C.head(content : String = "") : T = HEAD(emptyMap, this).visitAndFinalize(this, {+content}) /** * Document head */ @HtmlTagMarker -public inline fun > C.head(crossinline block: HEAD.() -> Unit = {}): T = - HEAD(emptyMap, this) - .visitAndFinalize(this, block) +inline fun > C.head(crossinline block : HEAD.() -> Unit = {}) : T = HEAD(emptyMap, this).visitAndFinalize(this, block) /** * Introductory or navigational aids for a page or section */ @HtmlTagMarker -public inline fun > C.`header`(classes: String? = null, crossinline - block: HEADER.() -> Unit = {}): T = HEADER(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.header(classes : String? = null, crossinline block : HEADER.() -> Unit = {}) : T = HEADER(attributesMapOf("class", classes), this).visitAndFinalize(this, block) @HtmlTagMarker -public inline fun > C.hGroup(classes: String? = null, crossinline - block: HGROUP.() -> Unit = {}): T = HGROUP(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.hGroup(classes : String? = null, crossinline block : HGROUP.() -> Unit = {}) : T = HGROUP(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Horizontal rule */ @HtmlTagMarker -public inline fun > C.hr(classes: String? = null, crossinline - block: HR.() -> Unit = {}): T = HR(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.hr(classes : String? = null, crossinline block : HR.() -> Unit = {}) : T = HR(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") +@Suppress("DEPRECATION") /** * Document root element */ @HtmlTagMarker -@Suppress("DEPRECATION") -@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") -public fun > C.html(content: String = "", namespace: String? = null): T = - HTML(emptyMap, this, namespace) - .visitAndFinalize(this, {+content}) - +fun > C.html(content : String = "", namespace : String? = null) : T = HTML(emptyMap, this, namespace).visitAndFinalize(this, {+content}) /** * Document root element */ @HtmlTagMarker -public inline fun > C.html(namespace: String? = null, crossinline - block: HTML.() -> Unit = {}): T = HTML(emptyMap, this, namespace) - .visitAndFinalize(this, block) +inline fun > C.html(namespace : String? = null, crossinline block : HTML.() -> Unit = {}) : T = HTML(emptyMap, this, namespace).visitAndFinalize(this, block) /** * Italic text style */ @HtmlTagMarker -public inline fun > C.i(classes: String? = null, crossinline - block: I.() -> Unit = {}): T = I(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.i(classes : String? = null, crossinline block : I.() -> Unit = {}) : T = I(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Inline subwindow */ @HtmlTagMarker -public fun > C.iframe( - sandbox: IframeSandbox? = null, - classes: String? = null, - content: String = "", -): T = IFRAME(attributesMapOf("sandbox", sandbox?.enumEncode(),"class", classes), this) - .visitAndFinalize(this, {+content}) - +fun > C.iframe(sandbox : IframeSandbox? = null, classes : String? = null, content : String = "") : T = IFRAME(attributesMapOf("sandbox", sandbox?.enumEncode(),"class", classes), this).visitAndFinalize(this, {+content}) /** * Inline subwindow */ @HtmlTagMarker -public inline fun > C.iframe( - sandbox: IframeSandbox? = null, - classes: String? = null, - crossinline block: IFRAME.() -> Unit = {}, -): T = IFRAME(attributesMapOf("sandbox", sandbox?.enumEncode(),"class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.iframe(sandbox : IframeSandbox? = null, classes : String? = null, crossinline block : IFRAME.() -> Unit = {}) : T = IFRAME(attributesMapOf("sandbox", sandbox?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) /** * Embedded image */ @HtmlTagMarker -public inline fun > C.img( - alt: String? = null, - src: String? = null, - classes: String? = null, - crossinline block: IMG.() -> Unit = {}, -): T = IMG(attributesMapOf("alt", alt,"src", src,"class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.img(alt : String? = null, src : String? = null, loading : ImgLoading? = null, classes : String? = null, crossinline block : IMG.() -> Unit = {}) : T = IMG(attributesMapOf("alt", alt,"src", src,"loading", loading?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) /** * Form control */ @HtmlTagMarker -public inline fun > C.input( - type: InputType? = null, - formEncType: InputFormEncType? = null, - formMethod: InputFormMethod? = null, - name: String? = null, - classes: String? = null, - crossinline block: INPUT.() -> Unit = {}, -): T = INPUT(attributesMapOf("type", type?.enumEncode(),"formenctype", - formEncType?.enumEncode(),"formmethod", formMethod?.enumEncode(),"name", name,"class", classes), - this) - .visitAndFinalize(this, block) +inline fun > C.input(type : InputType? = null, formEncType : InputFormEncType? = null, formMethod : InputFormMethod? = null, name : String? = null, classes : String? = null, crossinline block : INPUT.() -> Unit = {}) : T = INPUT(attributesMapOf("type", type?.enumEncode(),"formenctype", formEncType?.enumEncode(),"formmethod", formMethod?.enumEncode(),"name", name,"class", classes), this).visitAndFinalize(this, block) /** * Inserted text */ @HtmlTagMarker -public inline fun > C.ins(classes: String? = null, crossinline - block: INS.() -> Unit = {}): T = INS(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.ins(classes : String? = null, crossinline block : INS.() -> Unit = {}) : T = INS(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Text to be entered by the user */ @HtmlTagMarker -public inline fun > C.kbd(classes: String? = null, crossinline - block: KBD.() -> Unit = {}): T = KBD(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.kbd(classes : String? = null, crossinline block : KBD.() -> Unit = {}) : T = KBD(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Cryptographic key-pair generator form control */ @HtmlTagMarker -public inline fun > C.keyGen( - keyType: KeyGenKeyType? = null, - classes: String? = null, - crossinline block: KEYGEN.() -> Unit = {}, -): T = KEYGEN(attributesMapOf("keytype", keyType?.enumEncode(),"class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.keyGen(keyType : KeyGenKeyType? = null, classes : String? = null, crossinline block : KEYGEN.() -> Unit = {}) : T = KEYGEN(attributesMapOf("keytype", keyType?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) /** * Form field label text */ @HtmlTagMarker -public inline fun > C.label(classes: String? = null, crossinline - block: LABEL.() -> Unit = {}): T = LABEL(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.label(classes : String? = null, crossinline block : LABEL.() -> Unit = {}) : T = LABEL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Fieldset legend */ @HtmlTagMarker -public inline fun > C.legend(classes: String? = null, crossinline - block: LEGEND.() -> Unit = {}): T = LEGEND(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.legend(classes : String? = null, crossinline block : LEGEND.() -> Unit = {}) : T = LEGEND(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * List item */ @HtmlTagMarker -public inline fun > C.li(classes: String? = null, crossinline - block: LI.() -> Unit = {}): T = LI(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.li(classes : String? = null, crossinline block : LI.() -> Unit = {}) : T = LI(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * A media-independent link */ @HtmlTagMarker -public inline fun > C.link( - href: String? = null, - rel: String? = null, - type: String? = null, - crossinline block: LINK.() -> Unit = {}, -): T = LINK(attributesMapOf("href", href,"rel", rel,"type", type), this) - .visitAndFinalize(this, block) +inline fun > C.link(href : String? = null, rel : String? = null, type : String? = null, crossinline block : LINK.() -> Unit = {}) : T = LINK(attributesMapOf("href", href,"rel", rel,"type", type), this).visitAndFinalize(this, block) /** * Container for the dominant contents of another element */ @HtmlTagMarker -public inline fun > C.main(classes: String? = null, crossinline - block: MAIN.() -> Unit = {}): T = MAIN(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.main(classes : String? = null, crossinline block : MAIN.() -> Unit = {}) : T = MAIN(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Client-side image map */ @HtmlTagMarker -public inline fun > C.map( - name: String? = null, - classes: String? = null, - crossinline block: MAP.() -> Unit = {}, -): T = MAP(attributesMapOf("name", name,"class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.map(name : String? = null, classes : String? = null, crossinline block : MAP.() -> Unit = {}) : T = MAP(attributesMapOf("name", name,"class", classes), this).visitAndFinalize(this, block) /** * Highlight */ @HtmlTagMarker -public inline fun > C.mark(classes: String? = null, crossinline - block: MARK.() -> Unit = {}): T = MARK(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.mark(classes : String? = null, crossinline block : MARK.() -> Unit = {}) : T = MARK(attributesMapOf("class", classes), this).visitAndFinalize(this, block) @HtmlTagMarker -public inline fun > C.math(classes: String? = null, crossinline - block: MATH.() -> Unit = {}): T = MATH(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.math(classes : String? = null, crossinline block : MATH.() -> Unit = {}) : T = MATH(attributesMapOf("class", classes), this).visitAndFinalize(this, block) @HtmlTagMarker -public fun > C.mathml(classes: String? = null, content: String = ""): T = - MATHML(attributesMapOf("class", classes), this) - .visitAndFinalize(this, {+content}) - +fun > C.mathml(classes : String? = null, content : String = "") : T = MATHML(attributesMapOf("class", classes), this).visitAndFinalize(this, {+content}) @HtmlTagMarker -public inline fun > C.mathml(classes: String? = null, crossinline - block: MATHML.() -> Unit = {}): T = MATHML(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.mathml(classes : String? = null, crossinline block : MATHML.() -> Unit = {}) : T = MATHML(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Generic metainformation */ @HtmlTagMarker -public inline fun > C.meta( - name: String? = null, - content: String? = null, - charset: String? = null, - crossinline block: META.() -> Unit = {}, -): T = META(attributesMapOf("name", name,"content", content,"charset", charset), this) - .visitAndFinalize(this, block) +inline fun > C.meta(name : String? = null, content : String? = null, charset : String? = null, crossinline block : META.() -> Unit = {}) : T = META(attributesMapOf("name", name,"content", content,"charset", charset), this).visitAndFinalize(this, block) /** * Gauge */ @HtmlTagMarker -public inline fun > C.meter(classes: String? = null, crossinline - block: METER.() -> Unit = {}): T = METER(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.meter(classes : String? = null, crossinline block : METER.() -> Unit = {}) : T = METER(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Section with navigational links */ @HtmlTagMarker -public inline fun > C.nav(classes: String? = null, crossinline - block: NAV.() -> Unit = {}): T = NAV(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.nav(classes : String? = null, crossinline block : NAV.() -> Unit = {}) : T = NAV(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Generic metainformation */ @HtmlTagMarker -public inline fun > C.noScript(classes: String? = null, crossinline - block: NOSCRIPT.() -> Unit = {}): T = NOSCRIPT(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.noScript(classes : String? = null, crossinline block : NOSCRIPT.() -> Unit = {}) : T = NOSCRIPT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Generic embedded object */ @HtmlTagMarker -public inline fun > C.htmlObject(classes: String? = null, crossinline - block: OBJECT.() -> Unit = {}): T = OBJECT(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.htmlObject(classes : String? = null, crossinline block : OBJECT.() -> Unit = {}) : T = OBJECT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Ordered list */ @HtmlTagMarker -public inline fun > C.ol(classes: String? = null, crossinline - block: OL.() -> Unit = {}): T = OL(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.ol(classes : String? = null, crossinline block : OL.() -> Unit = {}) : T = OL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Option group */ @HtmlTagMarker -public inline fun > C.optGroup( - label: String? = null, - classes: String? = null, - crossinline block: OPTGROUP.() -> Unit = {}, -): T = OPTGROUP(attributesMapOf("label", label,"class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.optGroup(label : String? = null, classes : String? = null, crossinline block : OPTGROUP.() -> Unit = {}) : T = OPTGROUP(attributesMapOf("label", label,"class", classes), this).visitAndFinalize(this, block) /** * Selectable choice */ @HtmlTagMarker -public fun > C.option(classes: String? = null, content: String = ""): T = - OPTION(attributesMapOf("class", classes), this) - .visitAndFinalize(this, {+content}) - +fun > C.option(classes : String? = null, content : String = "") : T = OPTION(attributesMapOf("class", classes), this).visitAndFinalize(this, {+content}) /** * Selectable choice */ @HtmlTagMarker -public inline fun > C.option(classes: String? = null, crossinline - block: OPTION.() -> Unit = {}): T = OPTION(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.option(classes : String? = null, crossinline block : OPTION.() -> Unit = {}) : T = OPTION(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Calculated output value */ @HtmlTagMarker -public inline fun > C.output(classes: String? = null, crossinline - block: OUTPUT.() -> Unit = {}): T = OUTPUT(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.output(classes : String? = null, crossinline block : OUTPUT.() -> Unit = {}) : T = OUTPUT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Paragraph */ @HtmlTagMarker -public inline fun > C.p(classes: String? = null, crossinline - block: P.() -> Unit = {}): T = P(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.p(classes : String? = null, crossinline block : P.() -> Unit = {}) : T = P(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Named property value */ @HtmlTagMarker -public inline fun > C.`param`( - name: String? = null, - `value`: String? = null, - crossinline block: PARAM.() -> Unit = {}, -): T = PARAM(attributesMapOf("name", name,"value", value), this) - .visitAndFinalize(this, block) +inline fun > C.param(name : String? = null, value : String? = null, crossinline block : PARAM.() -> Unit = {}) : T = PARAM(attributesMapOf("name", name,"value", value), this).visitAndFinalize(this, block) /** * Pictures container */ @HtmlTagMarker -public inline fun > C.picture(crossinline block: PICTURE.() -> Unit = {}): T = - PICTURE(emptyMap, this) - .visitAndFinalize(this, block) +inline fun > C.picture(crossinline block : PICTURE.() -> Unit = {}) : T = PICTURE(emptyMap, this).visitAndFinalize(this, block) /** * Preformatted text */ @HtmlTagMarker -public inline fun > C.pre(classes: String? = null, crossinline - block: PRE.() -> Unit = {}): T = PRE(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.pre(classes : String? = null, crossinline block : PRE.() -> Unit = {}) : T = PRE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Progress bar */ @HtmlTagMarker -public inline fun > C.progress(classes: String? = null, crossinline - block: PROGRESS.() -> Unit = {}): T = PROGRESS(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.progress(classes : String? = null, crossinline block : PROGRESS.() -> Unit = {}) : T = PROGRESS(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Short inline quotation */ @HtmlTagMarker -public inline fun > C.q(classes: String? = null, crossinline - block: Q.() -> Unit = {}): T = Q(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.q(classes : String? = null, crossinline block : Q.() -> Unit = {}) : T = Q(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Parenthesis for ruby annotation text */ @HtmlTagMarker -public inline fun > C.rp(classes: String? = null, crossinline - block: RP.() -> Unit = {}): T = RP(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.rp(classes : String? = null, crossinline block : RP.() -> Unit = {}) : T = RP(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Ruby annotation text */ @HtmlTagMarker -public inline fun > C.rt(classes: String? = null, crossinline - block: RT.() -> Unit = {}): T = RT(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.rt(classes : String? = null, crossinline block : RT.() -> Unit = {}) : T = RT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Ruby annotation(s) */ @HtmlTagMarker -public inline fun > C.ruby(classes: String? = null, crossinline - block: RUBY.() -> Unit = {}): T = RUBY(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.ruby(classes : String? = null, crossinline block : RUBY.() -> Unit = {}) : T = RUBY(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Strike-through text style */ @HtmlTagMarker -public inline fun > C.s(classes: String? = null, crossinline - block: S.() -> Unit = {}): T = S(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) - -/** - * Computer output text style - */ -@HtmlTagMarker -public inline fun > C.samp(classes: String? = null, crossinline - block: SAMP.() -> Unit = {}): T = SAMP(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.samp(classes : String? = null, crossinline block : SAMP.() -> Unit = {}) : T = SAMP(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") +@Suppress("DEPRECATION") /** * Script statements */ @HtmlTagMarker -@Suppress("DEPRECATION") -@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") -public fun > C.script( - type: String? = null, - src: String? = null, - crossorigin: ScriptCrossorigin? = null, - content: String = "", -): T = SCRIPT(attributesMapOf("type", type,"src", src,"crossorigin", crossorigin?.enumEncode()), - this) - .visitAndFinalize(this, {+content}) - +fun > C.script(type : String? = null, src : String? = null, content : String = "") : T = SCRIPT(attributesMapOf("type", type,"src", src), this).visitAndFinalize(this, {+content}) /** * Script statements */ @HtmlTagMarker -public inline fun > C.script( - type: String? = null, - src: String? = null, - crossorigin: ScriptCrossorigin? = null, - crossinline block: SCRIPT.() -> Unit = {}, -): T = SCRIPT(attributesMapOf("type", type,"src", src,"crossorigin", crossorigin?.enumEncode()), - this) - .visitAndFinalize(this, block) +inline fun > C.script(type : String? = null, src : String? = null, crossinline block : SCRIPT.() -> Unit = {}) : T = SCRIPT(attributesMapOf("type", type,"src", src), this).visitAndFinalize(this, block) /** * Generic document or application section */ @HtmlTagMarker -public inline fun > C.section(classes: String? = null, crossinline - block: SECTION.() -> Unit = {}): T = SECTION(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.section(classes : String? = null, crossinline block : SECTION.() -> Unit = {}) : T = SECTION(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Option selector */ @HtmlTagMarker -public inline fun > C.select(classes: String? = null, crossinline - block: SELECT.() -> Unit = {}): T = SELECT(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.select(classes : String? = null, crossinline block : SELECT.() -> Unit = {}) : T = SELECT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Small text style */ @HtmlTagMarker -public inline fun > C.small(classes: String? = null, crossinline - block: SMALL.() -> Unit = {}): T = SMALL(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.small(classes : String? = null, crossinline block : SMALL.() -> Unit = {}) : T = SMALL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Media source for */ @HtmlTagMarker -public inline fun > C.source(classes: String? = null, crossinline - block: SOURCE.() -> Unit = {}): T = SOURCE(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.source(classes : String? = null, crossinline block : SOURCE.() -> Unit = {}) : T = SOURCE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Generic language/style container */ @HtmlTagMarker -public inline fun > C.span(classes: String? = null, crossinline - block: SPAN.() -> Unit = {}): T = SPAN(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.span(classes : String? = null, crossinline block : SPAN.() -> Unit = {}) : T = SPAN(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Strong emphasis */ @HtmlTagMarker -public inline fun > C.strong(classes: String? = null, crossinline - block: STRONG.() -> Unit = {}): T = STRONG(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.strong(classes : String? = null, crossinline block : STRONG.() -> Unit = {}) : T = STRONG(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") +@Suppress("DEPRECATION") /** * Style info */ @HtmlTagMarker -@Suppress("DEPRECATION") -@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") -public fun > C.style(type: String? = null, content: String = ""): T = - STYLE(attributesMapOf("type", type), this) - .visitAndFinalize(this, {+content}) - +fun > C.style(type : String? = null, content : String = "") : T = STYLE(attributesMapOf("type", type), this).visitAndFinalize(this, {+content}) /** * Style info */ @HtmlTagMarker -public inline fun > C.style(type: String? = null, crossinline - block: STYLE.() -> Unit = {}): T = STYLE(attributesMapOf("type", type), this) - .visitAndFinalize(this, block) +inline fun > C.style(type : String? = null, crossinline block : STYLE.() -> Unit = {}) : T = STYLE(attributesMapOf("type", type), this).visitAndFinalize(this, block) /** * Subscript */ @HtmlTagMarker -public inline fun > C.sub(classes: String? = null, crossinline - block: SUB.() -> Unit = {}): T = SUB(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.sub(classes : String? = null, crossinline block : SUB.() -> Unit = {}) : T = SUB(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Caption for */ @HtmlTagMarker -public inline fun > C.summary(classes: String? = null, crossinline - block: SUMMARY.() -> Unit = {}): T = SUMMARY(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.summary(classes : String? = null, crossinline block : SUMMARY.() -> Unit = {}) : T = SUMMARY(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Superscript */ @HtmlTagMarker -public inline fun > C.sup(classes: String? = null, crossinline - block: SUP.() -> Unit = {}): T = SUP(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.sup(classes : String? = null, crossinline block : SUP.() -> Unit = {}) : T = SUP(attributesMapOf("class", classes), this).visitAndFinalize(this, block) @HtmlTagMarker -public fun > C.svg(classes: String? = null, content: String = ""): T = - SVG(attributesMapOf("class", classes), this) - .visitAndFinalize(this, {+content}) - +fun > C.svg(classes : String? = null, content : String = "") : T = SVG(attributesMapOf("class", classes), this).visitAndFinalize(this, {+content}) @HtmlTagMarker -public inline fun > C.svg(classes: String? = null, crossinline - block: SVG.() -> Unit = {}): T = SVG(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.svg(classes : String? = null, crossinline block : SVG.() -> Unit = {}) : T = SVG(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** - * + * */ @HtmlTagMarker -public inline fun > C.table(classes: String? = null, crossinline - block: TABLE.() -> Unit = {}): T = TABLE(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.table(classes : String? = null, crossinline block : TABLE.() -> Unit = {}) : T = TABLE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Table body */ @HtmlTagMarker -public inline fun > C.tbody(classes: String? = null, crossinline - block: TBODY.() -> Unit = {}): T = TBODY(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.tbody(classes : String? = null, crossinline block : TBODY.() -> Unit = {}) : T = TBODY(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Table data cell */ @HtmlTagMarker -public inline fun > C.td(classes: String? = null, crossinline - block: TD.() -> Unit = {}): T = TD(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.td(classes : String? = null, crossinline block : TD.() -> Unit = {}) : T = TD(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Multi-line text field */ @HtmlTagMarker -public fun > C.textArea( - rows: String? = null, - cols: String? = null, - wrap: TextAreaWrap? = null, - classes: String? = null, - content: String = "", -): T = TEXTAREA(attributesMapOf("rows", rows,"cols", cols,"wrap", wrap?.enumEncode(),"class", - classes), this) - .visitAndFinalize(this, {+content}) - +fun > C.textArea(rows : String? = null, cols : String? = null, wrap : TextAreaWrap? = null, classes : String? = null, content : String = "") : T = TEXTAREA(attributesMapOf("rows", rows,"cols", cols,"wrap", wrap?.enumEncode(),"class", classes), this).visitAndFinalize(this, {+content}) /** * Multi-line text field */ @HtmlTagMarker -public inline fun > C.textArea( - rows: String? = null, - cols: String? = null, - wrap: TextAreaWrap? = null, - classes: String? = null, - crossinline block: TEXTAREA.() -> Unit = {}, -): T = TEXTAREA(attributesMapOf("rows", rows,"cols", cols,"wrap", wrap?.enumEncode(),"class", - classes), this) - .visitAndFinalize(this, block) +inline fun > C.textArea(rows : String? = null, cols : String? = null, wrap : TextAreaWrap? = null, classes : String? = null, crossinline block : TEXTAREA.() -> Unit = {}) : T = TEXTAREA(attributesMapOf("rows", rows,"cols", cols,"wrap", wrap?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) /** * Table footer */ @HtmlTagMarker -public inline fun > C.tfoot(classes: String? = null, crossinline - block: TFOOT.() -> Unit = {}): T = TFOOT(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.tfoot(classes : String? = null, crossinline block : TFOOT.() -> Unit = {}) : T = TFOOT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Table header cell */ @HtmlTagMarker -public inline fun > C.th( - scope: ThScope? = null, - classes: String? = null, - crossinline block: TH.() -> Unit = {}, -): T = TH(attributesMapOf("scope", scope?.enumEncode(),"class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.th(scope : ThScope? = null, classes : String? = null, crossinline block : TH.() -> Unit = {}) : T = TH(attributesMapOf("scope", scope?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) /** * Table header */ @HtmlTagMarker -public inline fun > C.thead(classes: String? = null, crossinline - block: THEAD.() -> Unit = {}): T = THEAD(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.thead(classes : String? = null, crossinline block : THEAD.() -> Unit = {}) : T = THEAD(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Machine-readable equivalent of date- or time-related data */ @HtmlTagMarker -public inline fun > C.time(classes: String? = null, crossinline - block: TIME.() -> Unit = {}): T = TIME(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.time(classes : String? = null, crossinline block : TIME.() -> Unit = {}) : T = TIME(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Document title */ @HtmlTagMarker -public fun > C.title(content: String = ""): T = TITLE(emptyMap, this) - .visitAndFinalize(this, {+content}) - +fun > C.title(content : String = "") : T = TITLE(emptyMap, this).visitAndFinalize(this, {+content}) /** * Document title */ @HtmlTagMarker -public inline fun > C.title(crossinline block: TITLE.() -> Unit = {}): T = - TITLE(emptyMap, this) - .visitAndFinalize(this, block) +inline fun > C.title(crossinline block : TITLE.() -> Unit = {}) : T = TITLE(emptyMap, this).visitAndFinalize(this, block) /** * Table row */ @HtmlTagMarker -public inline fun > C.tr(classes: String? = null, crossinline - block: TR.() -> Unit = {}): T = TR(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) - -/** - * Underlined text style - */ -@HtmlTagMarker -public inline fun > C.u(classes: String? = null, crossinline - block: U.() -> Unit = {}): T = U(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.tr(classes : String? = null, crossinline block : TR.() -> Unit = {}) : T = TR(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Unordered list */ @HtmlTagMarker -public inline fun > C.ul(classes: String? = null, crossinline - block: UL.() -> Unit = {}): T = UL(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.ul(classes : String? = null, crossinline block : UL.() -> Unit = {}) : T = UL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Unordered list */ @HtmlTagMarker -public inline fun > C.htmlVar(classes: String? = null, crossinline - block: VAR.() -> Unit = {}): T = VAR(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.htmlVar(classes : String? = null, crossinline block : VAR.() -> Unit = {}) : T = VAR(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Video player */ @HtmlTagMarker -public inline fun > C.video(classes: String? = null, crossinline - block: VIDEO.() -> Unit = {}): T = VIDEO(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +inline fun > C.video(classes : String? = null, crossinline block : VIDEO.() -> Unit = {}) : T = VIDEO(attributesMapOf("class", classes), this).visitAndFinalize(this, block) + diff --git a/src/commonMain/kotlin/generated/gen-enums.kt b/src/commonMain/kotlin/generated/gen-enums.kt index fa19aa4b..70fa095a 100644 --- a/src/commonMain/kotlin/generated/gen-enums.kt +++ b/src/commonMain/kotlin/generated/gen-enums.kt @@ -1,3 +1,5 @@ +@file:Suppress("EnumEntryName") + package kotlinx.html import kotlinx.html.* @@ -216,6 +218,13 @@ enum class IframeSandbox(override val realValue : String) : AttributeEnum { internal val iframeSandboxValues : Map = IframeSandbox.values().associateBy { it.realValue } @Suppress("unused") +enum class ImgLoading(override val realValue : String) : AttributeEnum { + eager("eager"), + lazy("lazy") +} + +internal val imgLoadingValues : Map = ImgLoading.values().associateBy { it.realValue } +@Suppress("unused") enum class InputType(override val realValue : String) : AttributeEnum { button("button"), checkBox("checkbox"), diff --git a/src/commonMain/kotlin/generated/gen-tag-unions.kt b/src/commonMain/kotlin/generated/gen-tag-unions.kt index e494ad5f..d2324a70 100644 --- a/src/commonMain/kotlin/generated/gen-tag-unions.kt +++ b/src/commonMain/kotlin/generated/gen-tag-unions.kt @@ -447,7 +447,11 @@ fun FlowOrInteractiveOrPhrasingContent.allowScriptsIframe(classes : String? = nu * Embedded image */ @HtmlTagMarker -inline fun FlowOrInteractiveOrPhrasingContent.img(alt : String? = null, src : String? = null, classes : String? = null, crossinline block : IMG.() -> Unit = {}) : Unit = IMG(attributesMapOf("alt", alt,"src", src,"class", classes), consumer).visit(block) +inline fun FlowOrInteractiveOrPhrasingContent.img(alt : String? = null, src : String? = null, loading : ImgLoading? = null, classes : String? = null, crossinline block : IMG.() -> Unit = {}) : Unit = IMG(attributesMapOf("alt", alt,"src", src,"loading", loading?.enumEncode(),"class", classes), consumer).visit(block) +@HtmlTagMarker +inline fun FlowOrInteractiveOrPhrasingContent.eagerImg(alt : String? = null, src : String? = null, classes : String? = null, crossinline block : IMG.() -> Unit = {}) : Unit = IMG(attributesMapOf("alt", alt,"src", src,"loading", ImgLoading.eager.realValue,"class", classes), consumer).visit(block) +@HtmlTagMarker +inline fun FlowOrInteractiveOrPhrasingContent.lazyImg(alt : String? = null, src : String? = null, classes : String? = null, crossinline block : IMG.() -> Unit = {}) : Unit = IMG(attributesMapOf("alt", alt,"src", src,"loading", ImgLoading.lazy.realValue,"class", classes), consumer).visit(block) /** * Pictures container diff --git a/src/commonMain/kotlin/generated/gen-tags-i.kt b/src/commonMain/kotlin/generated/gen-tags-i.kt index e24604ba..8c47e290 100644 --- a/src/commonMain/kotlin/generated/gen-tags-i.kt +++ b/src/commonMain/kotlin/generated/gen-tags-i.kt @@ -84,6 +84,10 @@ open class IMG(initialAttributes : Map, override val consumer : get() = attributeBooleanTicker.get(this, "ismap") set(newValue) {attributeBooleanTicker.set(this, "ismap", newValue)} + var loading : ImgLoading + get() = attributeImgLoadingEnumImgLoadingValues.get(this, "loading") + set(newValue) {attributeImgLoadingEnumImgLoadingValues.set(this, "loading", newValue)} + } val IMG.asFlowContent : FlowContent diff --git a/src/commonMain/kotlin/generated/gen-tags-p.kt b/src/commonMain/kotlin/generated/gen-tags-p.kt index 97043b04..df3501e8 100644 --- a/src/commonMain/kotlin/generated/gen-tags-p.kt +++ b/src/commonMain/kotlin/generated/gen-tags-p.kt @@ -47,7 +47,11 @@ inline fun PICTURE.source(classes : String? = null, crossinline block : SOURCE.( * Embedded image */ @HtmlTagMarker -inline fun PICTURE.img(alt : String? = null, src : String? = null, classes : String? = null, crossinline block : IMG.() -> Unit = {}) : Unit = IMG(attributesMapOf("alt", alt,"src", src,"class", classes), consumer).visit(block) +inline fun PICTURE.img(alt : String? = null, src : String? = null, loading : ImgLoading? = null, classes : String? = null, crossinline block : IMG.() -> Unit = {}) : Unit = IMG(attributesMapOf("alt", alt,"src", src,"loading", loading?.enumEncode(),"class", classes), consumer).visit(block) +@HtmlTagMarker +inline fun PICTURE.eagerImg(alt : String? = null, src : String? = null, classes : String? = null, crossinline block : IMG.() -> Unit = {}) : Unit = IMG(attributesMapOf("alt", alt,"src", src,"loading", ImgLoading.eager.realValue,"class", classes), consumer).visit(block) +@HtmlTagMarker +inline fun PICTURE.lazyImg(alt : String? = null, src : String? = null, classes : String? = null, crossinline block : IMG.() -> Unit = {}) : Unit = IMG(attributesMapOf("alt", alt,"src", src,"loading", ImgLoading.lazy.realValue,"class", classes), consumer).visit(block) val PICTURE.asFlowContent : FlowContent get() = this diff --git a/src/jsMain/kotlin/generated/gen-consumer-tags-js.kt b/src/jsMain/kotlin/generated/gen-consumer-tags-js.kt index 698c3ca9..5f31b252 100644 --- a/src/jsMain/kotlin/generated/gen-consumer-tags-js.kt +++ b/src/jsMain/kotlin/generated/gen-consumer-tags-js.kt @@ -1,1261 +1,708 @@ -/******************************************************************************* - DO NOT EDIT - This file was generated by module generate -*******************************************************************************/ package kotlinx.html.js import kotlinx.html.* +import kotlinx.html.impl.* import kotlinx.html.attributes.* +import org.w3c.dom.* -import kotlin.Deprecated -import kotlin.String -import kotlin.Suppress -import kotlin.Unit -import kotlinx.html.A -import kotlinx.html.ABBR -import kotlinx.html.ADDRESS -import kotlinx.html.AREA -import kotlinx.html.ARTICLE -import kotlinx.html.ASIDE -import kotlinx.html.AUDIO -import kotlinx.html.AreaShape -import kotlinx.html.B -import kotlinx.html.BASE -import kotlinx.html.BDI -import kotlinx.html.BDO -import kotlinx.html.BLOCKQUOTE -import kotlinx.html.BODY -import kotlinx.html.BR -import kotlinx.html.BUTTON -import kotlinx.html.ButtonFormEncType -import kotlinx.html.ButtonFormMethod -import kotlinx.html.ButtonType -import kotlinx.html.CANVAS -import kotlinx.html.CAPTION -import kotlinx.html.CITE -import kotlinx.html.CODE -import kotlinx.html.COL -import kotlinx.html.COLGROUP -import kotlinx.html.COMMAND -import kotlinx.html.CommandType -import kotlinx.html.DATALIST -import kotlinx.html.DD -import kotlinx.html.DEL -import kotlinx.html.DETAILS -import kotlinx.html.DFN -import kotlinx.html.DIALOG -import kotlinx.html.DIV -import kotlinx.html.DL -import kotlinx.html.DT -import kotlinx.html.EM -import kotlinx.html.EMBED -import kotlinx.html.FIELDSET -import kotlinx.html.FIGCAPTION -import kotlinx.html.FIGURE -import kotlinx.html.FOOTER -import kotlinx.html.FORM -import kotlinx.html.FormEncType -import kotlinx.html.FormMethod -import kotlinx.html.H1 -import kotlinx.html.H2 -import kotlinx.html.H3 -import kotlinx.html.H4 -import kotlinx.html.H5 -import kotlinx.html.H6 -import kotlinx.html.HEAD -import kotlinx.html.HEADER -import kotlinx.html.HGROUP -import kotlinx.html.HR -import kotlinx.html.HTML -import kotlinx.html.HtmlTagMarker -import kotlinx.html.I -import kotlinx.html.IFRAME -import kotlinx.html.IMG -import kotlinx.html.INPUT -import kotlinx.html.INS -import kotlinx.html.IframeSandbox -import kotlinx.html.InputFormEncType -import kotlinx.html.InputFormMethod -import kotlinx.html.InputType -import kotlinx.html.KBD -import kotlinx.html.KEYGEN -import kotlinx.html.KeyGenKeyType -import kotlinx.html.LABEL -import kotlinx.html.LEGEND -import kotlinx.html.LI -import kotlinx.html.LINK -import kotlinx.html.MAIN -import kotlinx.html.MAP -import kotlinx.html.MARK -import kotlinx.html.MATH -import kotlinx.html.MATHML -import kotlinx.html.META -import kotlinx.html.METER -import kotlinx.html.NAV -import kotlinx.html.NOSCRIPT -import kotlinx.html.OBJECT -import kotlinx.html.OL -import kotlinx.html.OPTGROUP -import kotlinx.html.OPTION -import kotlinx.html.OUTPUT -import kotlinx.html.P -import kotlinx.html.PARAM -import kotlinx.html.PICTURE -import kotlinx.html.PRE -import kotlinx.html.PROGRESS -import kotlinx.html.Q -import kotlinx.html.RP -import kotlinx.html.RT -import kotlinx.html.RUBY -import kotlinx.html.S -import kotlinx.html.SAMP -import kotlinx.html.SCRIPT -import kotlinx.html.SECTION -import kotlinx.html.SELECT -import kotlinx.html.SMALL -import kotlinx.html.SOURCE -import kotlinx.html.SPAN -import kotlinx.html.STRONG -import kotlinx.html.STYLE -import kotlinx.html.SUB -import kotlinx.html.SUMMARY -import kotlinx.html.SUP -import kotlinx.html.SVG -import kotlinx.html.ScriptCrossorigin -import kotlinx.html.TABLE -import kotlinx.html.TBODY -import kotlinx.html.TD -import kotlinx.html.TEXTAREA -import kotlinx.html.TFOOT -import kotlinx.html.TH -import kotlinx.html.THEAD -import kotlinx.html.TIME -import kotlinx.html.TITLE -import kotlinx.html.TR -import kotlinx.html.TagConsumer -import kotlinx.html.TextAreaWrap -import kotlinx.html.ThScope -import kotlinx.html.U -import kotlinx.html.UL -import kotlinx.html.VAR -import kotlinx.html.VIDEO -import org.w3c.dom.HTMLAnchorElement -import org.w3c.dom.HTMLAreaElement -import org.w3c.dom.HTMLAudioElement -import org.w3c.dom.HTMLBRElement -import org.w3c.dom.HTMLBaseElement -import org.w3c.dom.HTMLBodyElement -import org.w3c.dom.HTMLButtonElement -import org.w3c.dom.HTMLCanvasElement -import org.w3c.dom.HTMLDataListElement -import org.w3c.dom.HTMLDetailsElement -import org.w3c.dom.HTMLDialogElement -import org.w3c.dom.HTMLDivElement -import org.w3c.dom.HTMLElement -import org.w3c.dom.HTMLEmbedElement -import org.w3c.dom.HTMLFieldSetElement -import org.w3c.dom.HTMLFormElement -import org.w3c.dom.HTMLHRElement -import org.w3c.dom.HTMLHeadElement -import org.w3c.dom.HTMLHeadingElement -import org.w3c.dom.HTMLHtmlElement -import org.w3c.dom.HTMLImageElement -import org.w3c.dom.HTMLInputElement -import org.w3c.dom.HTMLLIElement -import org.w3c.dom.HTMLLabelElement -import org.w3c.dom.HTMLLegendElement -import org.w3c.dom.HTMLLinkElement -import org.w3c.dom.HTMLMapElement -import org.w3c.dom.HTMLMetaElement -import org.w3c.dom.HTMLMeterElement -import org.w3c.dom.HTMLOptGroupElement -import org.w3c.dom.HTMLOptionElement -import org.w3c.dom.HTMLOutputElement -import org.w3c.dom.HTMLParagraphElement -import org.w3c.dom.HTMLParamElement -import org.w3c.dom.HTMLPictureElement -import org.w3c.dom.HTMLPreElement -import org.w3c.dom.HTMLProgressElement -import org.w3c.dom.HTMLScriptElement -import org.w3c.dom.HTMLSelectElement -import org.w3c.dom.HTMLSourceElement -import org.w3c.dom.HTMLSpanElement -import org.w3c.dom.HTMLStyleElement -import org.w3c.dom.HTMLTableCellElement -import org.w3c.dom.HTMLTableColElement -import org.w3c.dom.HTMLTableElement -import org.w3c.dom.HTMLTableRowElement -import org.w3c.dom.HTMLTableSectionElement -import org.w3c.dom.HTMLTextAreaElement -import org.w3c.dom.HTMLTimeElement -import org.w3c.dom.HTMLTitleElement -import org.w3c.dom.HTMLVideoElement +/******************************************************************************* + DO NOT EDIT + This file was generated by module generate +*******************************************************************************/ /** * Anchor */ @HtmlTagMarker -public inline fun TagConsumer.a( - href: String? = null, - target: String? = null, - classes: String? = null, - crossinline block: A.() -> Unit = {}, -): HTMLAnchorElement = A(attributesMapOf("href", href,"target", target,"class", classes), this) - .visitAndFinalize(this, block) as HTMLAnchorElement +public inline fun TagConsumer.a(href : String? = null, target : String? = null, classes : String? = null, crossinline block : A.() -> Unit = {}) : HTMLAnchorElement = A(attributesMapOf("href", href,"target", target,"class", classes), this).visitAndFinalize(this, block) as HTMLAnchorElement /** * Abbreviated form (e.g., WWW, HTTP,etc.) */ @HtmlTagMarker -public inline fun TagConsumer.abbr(classes: String? = null, crossinline - block: ABBR.() -> Unit = {}): HTMLElement = ABBR(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.abbr(classes : String? = null, crossinline block : ABBR.() -> Unit = {}) : HTMLElement = ABBR(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Information on author */ @HtmlTagMarker -public inline fun TagConsumer.address(classes: String? = null, crossinline - block: ADDRESS.() -> Unit = {}): HTMLElement = ADDRESS(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.address(classes : String? = null, crossinline block : ADDRESS.() -> Unit = {}) : HTMLElement = ADDRESS(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Client-side image map area */ @HtmlTagMarker -public inline fun TagConsumer.area( - shape: AreaShape? = null, - alt: String? = null, - classes: String? = null, - crossinline block: AREA.() -> Unit = {}, -): HTMLAreaElement = AREA(attributesMapOf("Shape", shape?.enumEncode(),"alt", alt,"class", classes), - this) - .visitAndFinalize(this, block) as HTMLAreaElement +public inline fun TagConsumer.area(shape : AreaShape? = null, alt : String? = null, classes : String? = null, crossinline block : AREA.() -> Unit = {}) : HTMLAreaElement = AREA(attributesMapOf("Shape", shape?.enumEncode(),"alt", alt,"class", classes), this).visitAndFinalize(this, block) as HTMLAreaElement /** * Self-contained syndicatable or reusable composition */ @HtmlTagMarker -public inline fun TagConsumer.article(classes: String? = null, crossinline - block: ARTICLE.() -> Unit = {}): HTMLElement = ARTICLE(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.article(classes : String? = null, crossinline block : ARTICLE.() -> Unit = {}) : HTMLElement = ARTICLE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Sidebar for tangentially related content */ @HtmlTagMarker -public inline fun TagConsumer.aside(classes: String? = null, crossinline - block: ASIDE.() -> Unit = {}): HTMLElement = ASIDE(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.aside(classes : String? = null, crossinline block : ASIDE.() -> Unit = {}) : HTMLElement = ASIDE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Audio player */ @HtmlTagMarker -public inline fun TagConsumer.audio(classes: String? = null, crossinline - block: AUDIO.() -> Unit = {}): HTMLAudioElement = AUDIO(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) as HTMLAudioElement +public inline fun TagConsumer.audio(classes : String? = null, crossinline block : AUDIO.() -> Unit = {}) : HTMLAudioElement = AUDIO(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLAudioElement /** * Bold text style */ @HtmlTagMarker -public inline fun TagConsumer.b(classes: String? = null, crossinline - block: B.() -> Unit = {}): HTMLElement = B(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.b(classes : String? = null, crossinline block : B.() -> Unit = {}) : HTMLElement = B(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Document base URI */ @HtmlTagMarker -public inline fun TagConsumer.base(classes: String? = null, crossinline - block: BASE.() -> Unit = {}): HTMLBaseElement = BASE(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) as HTMLBaseElement +public inline fun TagConsumer.base(classes : String? = null, crossinline block : BASE.() -> Unit = {}) : HTMLBaseElement = BASE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLBaseElement /** * Text directionality isolation */ @HtmlTagMarker -public inline fun TagConsumer.bdi(classes: String? = null, crossinline - block: BDI.() -> Unit = {}): HTMLElement = BDI(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.bdi(classes : String? = null, crossinline block : BDI.() -> Unit = {}) : HTMLElement = BDI(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * I18N BiDi over-ride */ @HtmlTagMarker -public inline fun TagConsumer.bdo(classes: String? = null, crossinline - block: BDO.() -> Unit = {}): HTMLElement = BDO(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.bdo(classes : String? = null, crossinline block : BDO.() -> Unit = {}) : HTMLElement = BDO(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Long quotation */ @HtmlTagMarker -public inline fun TagConsumer.blockQuote(classes: String? = null, crossinline - block: BLOCKQUOTE.() -> Unit = {}): HTMLElement = BLOCKQUOTE(attributesMapOf("class", classes), - this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.blockQuote(classes : String? = null, crossinline block : BLOCKQUOTE.() -> Unit = {}) : HTMLElement = BLOCKQUOTE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Document body */ @HtmlTagMarker -public inline fun TagConsumer.body(classes: String? = null, crossinline - block: BODY.() -> Unit = {}): HTMLBodyElement = BODY(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) as HTMLBodyElement +public inline fun TagConsumer.body(classes : String? = null, crossinline block : BODY.() -> Unit = {}) : HTMLBodyElement = BODY(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLBodyElement /** * Forced line break */ @HtmlTagMarker -public inline fun TagConsumer.br(classes: String? = null, crossinline - block: BR.() -> Unit = {}): HTMLBRElement = BR(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) as HTMLBRElement +public inline fun TagConsumer.br(classes : String? = null, crossinline block : BR.() -> Unit = {}) : HTMLBRElement = BR(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLBRElement /** * Push button */ @HtmlTagMarker -public inline fun TagConsumer.button( - formEncType: ButtonFormEncType? = null, - formMethod: ButtonFormMethod? = null, - name: String? = null, - type: ButtonType? = null, - classes: String? = null, - crossinline block: BUTTON.() -> Unit = {}, -): HTMLButtonElement = BUTTON(attributesMapOf("formenctype", formEncType?.enumEncode(),"formmethod", - formMethod?.enumEncode(),"name", name,"type", type?.enumEncode(),"class", classes), this) - .visitAndFinalize(this, block) as HTMLButtonElement +public inline fun TagConsumer.button(formEncType : ButtonFormEncType? = null, formMethod : ButtonFormMethod? = null, name : String? = null, type : ButtonType? = null, classes : String? = null, crossinline block : BUTTON.() -> Unit = {}) : HTMLButtonElement = BUTTON(attributesMapOf("formenctype", formEncType?.enumEncode(),"formmethod", formMethod?.enumEncode(),"name", name,"type", type?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) as HTMLButtonElement /** * Scriptable bitmap canvas */ @HtmlTagMarker -public fun TagConsumer.canvas(classes: String? = null, content: String = ""): - HTMLCanvasElement = CANVAS(attributesMapOf("class", classes), this) - .visitAndFinalize(this, {+content}) as HTMLCanvasElement - +public fun TagConsumer.canvas(classes : String? = null, content : String = "") : HTMLCanvasElement = CANVAS(attributesMapOf("class", classes), this).visitAndFinalize(this, {+content}) as HTMLCanvasElement /** * Scriptable bitmap canvas */ @HtmlTagMarker -public inline fun TagConsumer.canvas(classes: String? = null, crossinline - block: CANVAS.() -> Unit = {}): HTMLCanvasElement = CANVAS(attributesMapOf("class", classes), - this) - .visitAndFinalize(this, block) as HTMLCanvasElement +public inline fun TagConsumer.canvas(classes : String? = null, crossinline block : CANVAS.() -> Unit = {}) : HTMLCanvasElement = CANVAS(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLCanvasElement /** * Table caption */ @HtmlTagMarker -public inline fun TagConsumer.caption(classes: String? = null, crossinline - block: CAPTION.() -> Unit = {}): HTMLElement = CAPTION(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.caption(classes : String? = null, crossinline block : CAPTION.() -> Unit = {}) : HTMLElement = CAPTION(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Citation */ @HtmlTagMarker -public inline fun TagConsumer.cite(classes: String? = null, crossinline - block: CITE.() -> Unit = {}): HTMLElement = CITE(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.cite(classes : String? = null, crossinline block : CITE.() -> Unit = {}) : HTMLElement = CITE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Computer code fragment */ @HtmlTagMarker -public inline fun TagConsumer.code(classes: String? = null, crossinline - block: CODE.() -> Unit = {}): HTMLElement = CODE(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.code(classes : String? = null, crossinline block : CODE.() -> Unit = {}) : HTMLElement = CODE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Table column */ @HtmlTagMarker -public inline fun TagConsumer.col(classes: String? = null, crossinline - block: COL.() -> Unit = {}): HTMLTableColElement = COL(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) as HTMLTableColElement +public inline fun TagConsumer.col(classes : String? = null, crossinline block : COL.() -> Unit = {}) : HTMLTableColElement = COL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLTableColElement /** * Table column group */ @HtmlTagMarker -public inline fun TagConsumer.colGroup(classes: String? = null, crossinline - block: COLGROUP.() -> Unit = {}): HTMLTableColElement = COLGROUP(attributesMapOf("class", - classes), this) - .visitAndFinalize(this, block) as HTMLTableColElement +public inline fun TagConsumer.colGroup(classes : String? = null, crossinline block : COLGROUP.() -> Unit = {}) : HTMLTableColElement = COLGROUP(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLTableColElement @HtmlTagMarker -public inline fun TagConsumer.command( - type: CommandType? = null, - classes: String? = null, - crossinline block: COMMAND.() -> Unit = {}, -): HTMLElement = COMMAND(attributesMapOf("type", type?.enumEncode(),"class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.command(type : CommandType? = null, classes : String? = null, crossinline block : COMMAND.() -> Unit = {}) : HTMLElement = COMMAND(attributesMapOf("type", type?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) /** * Container for options for */ @HtmlTagMarker -public inline fun TagConsumer.dataList(classes: String? = null, crossinline - block: DATALIST.() -> Unit = {}): HTMLDataListElement = DATALIST(attributesMapOf("class", - classes), this) - .visitAndFinalize(this, block) as HTMLDataListElement +public inline fun TagConsumer.dataList(classes : String? = null, crossinline block : DATALIST.() -> Unit = {}) : HTMLDataListElement = DATALIST(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLDataListElement /** * Definition description */ @HtmlTagMarker -public inline fun TagConsumer.dd(classes: String? = null, crossinline - block: DD.() -> Unit = {}): HTMLElement = DD(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.dd(classes : String? = null, crossinline block : DD.() -> Unit = {}) : HTMLElement = DD(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Deleted text */ @HtmlTagMarker -public inline fun TagConsumer.del(classes: String? = null, crossinline - block: DEL.() -> Unit = {}): HTMLElement = DEL(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.del(classes : String? = null, crossinline block : DEL.() -> Unit = {}) : HTMLElement = DEL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Disclosure control for hiding details */ @HtmlTagMarker -public inline fun TagConsumer.details(classes: String? = null, crossinline - block: DETAILS.() -> Unit = {}): HTMLDetailsElement = DETAILS(attributesMapOf("class", classes), - this) - .visitAndFinalize(this, block) as HTMLDetailsElement +public inline fun TagConsumer.details(classes : String? = null, crossinline block : DETAILS.() -> Unit = {}) : HTMLDetailsElement = DETAILS(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLDetailsElement /** * Instance definition */ @HtmlTagMarker -public inline fun TagConsumer.dfn(classes: String? = null, crossinline - block: DFN.() -> Unit = {}): HTMLElement = DFN(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.dfn(classes : String? = null, crossinline block : DFN.() -> Unit = {}) : HTMLElement = DFN(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Dialog box or window */ @HtmlTagMarker -public inline fun TagConsumer.dialog(classes: String? = null, crossinline - block: DIALOG.() -> Unit = {}): HTMLDialogElement = DIALOG(attributesMapOf("class", classes), - this) - .visitAndFinalize(this, block) as HTMLDialogElement +public inline fun TagConsumer.dialog(classes : String? = null, crossinline block : DIALOG.() -> Unit = {}) : HTMLDialogElement = DIALOG(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLDialogElement /** * Generic language/style container */ @HtmlTagMarker -public inline fun TagConsumer.div(classes: String? = null, crossinline - block: DIV.() -> Unit = {}): HTMLDivElement = DIV(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) as HTMLDivElement +public inline fun TagConsumer.div(classes : String? = null, crossinline block : DIV.() -> Unit = {}) : HTMLDivElement = DIV(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLDivElement /** * Definition list */ @HtmlTagMarker -public inline fun TagConsumer.dl(classes: String? = null, crossinline - block: DL.() -> Unit = {}): HTMLElement = DL(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.dl(classes : String? = null, crossinline block : DL.() -> Unit = {}) : HTMLElement = DL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Definition term */ @HtmlTagMarker -public inline fun TagConsumer.dt(classes: String? = null, crossinline - block: DT.() -> Unit = {}): HTMLElement = DT(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.dt(classes : String? = null, crossinline block : DT.() -> Unit = {}) : HTMLElement = DT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Emphasis */ @HtmlTagMarker -public inline fun TagConsumer.em(classes: String? = null, crossinline - block: EM.() -> Unit = {}): HTMLElement = EM(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.em(classes : String? = null, crossinline block : EM.() -> Unit = {}) : HTMLElement = EM(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Plugin */ @HtmlTagMarker -public inline fun TagConsumer.embed(classes: String? = null, crossinline - block: EMBED.() -> Unit = {}): HTMLEmbedElement = EMBED(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) as HTMLEmbedElement +public inline fun TagConsumer.embed(classes : String? = null, crossinline block : EMBED.() -> Unit = {}) : HTMLEmbedElement = EMBED(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLEmbedElement /** * Form control group */ @HtmlTagMarker -public inline fun TagConsumer.fieldSet(classes: String? = null, crossinline - block: FIELDSET.() -> Unit = {}): HTMLFieldSetElement = FIELDSET(attributesMapOf("class", - classes), this) - .visitAndFinalize(this, block) as HTMLFieldSetElement +public inline fun TagConsumer.fieldSet(classes : String? = null, crossinline block : FIELDSET.() -> Unit = {}) : HTMLFieldSetElement = FIELDSET(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLFieldSetElement /** * Caption for */ @HtmlTagMarker -public inline fun TagConsumer.figcaption(classes: String? = null, crossinline - block: FIGCAPTION.() -> Unit = {}): HTMLElement = FIGCAPTION(attributesMapOf("class", classes), - this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.figcaption(classes : String? = null, crossinline block : FIGCAPTION.() -> Unit = {}) : HTMLElement = FIGCAPTION(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Figure with optional caption */ @HtmlTagMarker -public inline fun TagConsumer.figure(classes: String? = null, crossinline - block: FIGURE.() -> Unit = {}): HTMLElement = FIGURE(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.figure(classes : String? = null, crossinline block : FIGURE.() -> Unit = {}) : HTMLElement = FIGURE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Footer for a page or section */ @HtmlTagMarker -public inline fun TagConsumer.footer(classes: String? = null, crossinline - block: FOOTER.() -> Unit = {}): HTMLElement = FOOTER(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.footer(classes : String? = null, crossinline block : FOOTER.() -> Unit = {}) : HTMLElement = FOOTER(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Interactive form */ @HtmlTagMarker -public inline fun TagConsumer.form( - action: String? = null, - encType: FormEncType? = null, - method: FormMethod? = null, - classes: String? = null, - crossinline block: FORM.() -> Unit = {}, -): HTMLFormElement = FORM(attributesMapOf("action", action,"enctype", - encType?.enumEncode(),"method", method?.enumEncode(),"class", classes), this) - .visitAndFinalize(this, block) as HTMLFormElement +public inline fun TagConsumer.form(action : String? = null, encType : FormEncType? = null, method : FormMethod? = null, classes : String? = null, crossinline block : FORM.() -> Unit = {}) : HTMLFormElement = FORM(attributesMapOf("action", action,"enctype", encType?.enumEncode(),"method", method?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) as HTMLFormElement /** * Heading */ @HtmlTagMarker -public inline fun TagConsumer.h1(classes: String? = null, crossinline - block: H1.() -> Unit = {}): HTMLHeadingElement = H1(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) as HTMLHeadingElement +public inline fun TagConsumer.h1(classes : String? = null, crossinline block : H1.() -> Unit = {}) : HTMLHeadingElement = H1(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLHeadingElement /** * Heading */ @HtmlTagMarker -public inline fun TagConsumer.h2(classes: String? = null, crossinline - block: H2.() -> Unit = {}): HTMLHeadingElement = H2(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) as HTMLHeadingElement +public inline fun TagConsumer.h2(classes : String? = null, crossinline block : H2.() -> Unit = {}) : HTMLHeadingElement = H2(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLHeadingElement /** * Heading */ @HtmlTagMarker -public inline fun TagConsumer.h3(classes: String? = null, crossinline - block: H3.() -> Unit = {}): HTMLHeadingElement = H3(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) as HTMLHeadingElement +public inline fun TagConsumer.h3(classes : String? = null, crossinline block : H3.() -> Unit = {}) : HTMLHeadingElement = H3(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLHeadingElement /** * Heading */ @HtmlTagMarker -public inline fun TagConsumer.h4(classes: String? = null, crossinline - block: H4.() -> Unit = {}): HTMLHeadingElement = H4(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) as HTMLHeadingElement +public inline fun TagConsumer.h4(classes : String? = null, crossinline block : H4.() -> Unit = {}) : HTMLHeadingElement = H4(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLHeadingElement /** * Heading */ @HtmlTagMarker -public inline fun TagConsumer.h5(classes: String? = null, crossinline - block: H5.() -> Unit = {}): HTMLHeadingElement = H5(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) as HTMLHeadingElement +public inline fun TagConsumer.h5(classes : String? = null, crossinline block : H5.() -> Unit = {}) : HTMLHeadingElement = H5(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLHeadingElement /** * Heading */ @HtmlTagMarker -public inline fun TagConsumer.h6(classes: String? = null, crossinline - block: H6.() -> Unit = {}): HTMLHeadingElement = H6(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) as HTMLHeadingElement +public inline fun TagConsumer.h6(classes : String? = null, crossinline block : H6.() -> Unit = {}) : HTMLHeadingElement = H6(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLHeadingElement +@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") +@Suppress("DEPRECATION") /** * Document head */ @HtmlTagMarker -@Suppress("DEPRECATION") -@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") -public fun TagConsumer.head(content: String = ""): HTMLHeadElement = HEAD(emptyMap, - this) - .visitAndFinalize(this, {+content}) as HTMLHeadElement - +public fun TagConsumer.head(content : String = "") : HTMLHeadElement = HEAD(emptyMap, this).visitAndFinalize(this, {+content}) as HTMLHeadElement /** * Document head */ @HtmlTagMarker -public inline fun TagConsumer.head(crossinline block: HEAD.() -> Unit = {}): - HTMLHeadElement = HEAD(emptyMap, this) - .visitAndFinalize(this, block) as HTMLHeadElement +public inline fun TagConsumer.head(crossinline block : HEAD.() -> Unit = {}) : HTMLHeadElement = HEAD(emptyMap, this).visitAndFinalize(this, block) as HTMLHeadElement /** * Introductory or navigational aids for a page or section */ @HtmlTagMarker -public inline fun TagConsumer.`header`(classes: String? = null, crossinline - block: HEADER.() -> Unit = {}): HTMLElement = HEADER(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.header(classes : String? = null, crossinline block : HEADER.() -> Unit = {}) : HTMLElement = HEADER(attributesMapOf("class", classes), this).visitAndFinalize(this, block) @HtmlTagMarker -public inline fun TagConsumer.hGroup(classes: String? = null, crossinline - block: HGROUP.() -> Unit = {}): HTMLElement = HGROUP(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.hGroup(classes : String? = null, crossinline block : HGROUP.() -> Unit = {}) : HTMLElement = HGROUP(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Horizontal rule */ @HtmlTagMarker -public inline fun TagConsumer.hr(classes: String? = null, crossinline - block: HR.() -> Unit = {}): HTMLHRElement = HR(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) as HTMLHRElement +public inline fun TagConsumer.hr(classes : String? = null, crossinline block : HR.() -> Unit = {}) : HTMLHRElement = HR(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLHRElement +@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") +@Suppress("DEPRECATION") /** * Document root element */ @HtmlTagMarker -@Suppress("DEPRECATION") -@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") -public fun TagConsumer.html(content: String = "", namespace: String? = null): - HTMLHtmlElement = HTML(emptyMap, this, namespace) - .visitAndFinalize(this, {+content}) as HTMLHtmlElement - +public fun TagConsumer.html(content : String = "", namespace : String? = null) : HTMLHtmlElement = HTML(emptyMap, this, namespace).visitAndFinalize(this, {+content}) as HTMLHtmlElement /** * Document root element */ @HtmlTagMarker -public inline fun TagConsumer.html(namespace: String? = null, crossinline - block: HTML.() -> Unit = {}): HTMLHtmlElement = HTML(emptyMap, this, namespace) - .visitAndFinalize(this, block) as HTMLHtmlElement +public inline fun TagConsumer.html(namespace : String? = null, crossinline block : HTML.() -> Unit = {}) : HTMLHtmlElement = HTML(emptyMap, this, namespace).visitAndFinalize(this, block) as HTMLHtmlElement /** * Italic text style */ @HtmlTagMarker -public inline fun TagConsumer.i(classes: String? = null, crossinline - block: I.() -> Unit = {}): HTMLElement = I(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.i(classes : String? = null, crossinline block : I.() -> Unit = {}) : HTMLElement = I(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Inline subwindow */ @HtmlTagMarker -public fun TagConsumer.iframe( - sandbox: IframeSandbox? = null, - classes: String? = null, - content: String = "", -): HTMLElement = IFRAME(attributesMapOf("sandbox", sandbox?.enumEncode(),"class", classes), this) - .visitAndFinalize(this, {+content}) - +public fun TagConsumer.iframe(sandbox : IframeSandbox? = null, classes : String? = null, content : String = "") : HTMLElement = IFRAME(attributesMapOf("sandbox", sandbox?.enumEncode(),"class", classes), this).visitAndFinalize(this, {+content}) /** * Inline subwindow */ @HtmlTagMarker -public inline fun TagConsumer.iframe( - sandbox: IframeSandbox? = null, - classes: String? = null, - crossinline block: IFRAME.() -> Unit = {}, -): HTMLElement = IFRAME(attributesMapOf("sandbox", sandbox?.enumEncode(),"class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.iframe(sandbox : IframeSandbox? = null, classes : String? = null, crossinline block : IFRAME.() -> Unit = {}) : HTMLElement = IFRAME(attributesMapOf("sandbox", sandbox?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) /** * Embedded image */ @HtmlTagMarker -public inline fun TagConsumer.img( - alt: String? = null, - src: String? = null, - classes: String? = null, - crossinline block: IMG.() -> Unit = {}, -): HTMLImageElement = IMG(attributesMapOf("alt", alt,"src", src,"class", classes), this) - .visitAndFinalize(this, block) as HTMLImageElement +public inline fun TagConsumer.img(alt : String? = null, src : String? = null, loading : ImgLoading? = null, classes : String? = null, crossinline block : IMG.() -> Unit = {}) : HTMLImageElement = IMG(attributesMapOf("alt", alt,"src", src,"loading", loading?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) as HTMLImageElement /** * Form control */ @HtmlTagMarker -public inline fun TagConsumer.input( - type: InputType? = null, - formEncType: InputFormEncType? = null, - formMethod: InputFormMethod? = null, - name: String? = null, - classes: String? = null, - crossinline block: INPUT.() -> Unit = {}, -): HTMLInputElement = INPUT(attributesMapOf("type", type?.enumEncode(),"formenctype", - formEncType?.enumEncode(),"formmethod", formMethod?.enumEncode(),"name", name,"class", classes), - this) - .visitAndFinalize(this, block) as HTMLInputElement +public inline fun TagConsumer.input(type : InputType? = null, formEncType : InputFormEncType? = null, formMethod : InputFormMethod? = null, name : String? = null, classes : String? = null, crossinline block : INPUT.() -> Unit = {}) : HTMLInputElement = INPUT(attributesMapOf("type", type?.enumEncode(),"formenctype", formEncType?.enumEncode(),"formmethod", formMethod?.enumEncode(),"name", name,"class", classes), this).visitAndFinalize(this, block) as HTMLInputElement /** * Inserted text */ @HtmlTagMarker -public inline fun TagConsumer.ins(classes: String? = null, crossinline - block: INS.() -> Unit = {}): HTMLElement = INS(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.ins(classes : String? = null, crossinline block : INS.() -> Unit = {}) : HTMLElement = INS(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Text to be entered by the user */ @HtmlTagMarker -public inline fun TagConsumer.kbd(classes: String? = null, crossinline - block: KBD.() -> Unit = {}): HTMLElement = KBD(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.kbd(classes : String? = null, crossinline block : KBD.() -> Unit = {}) : HTMLElement = KBD(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Cryptographic key-pair generator form control */ @HtmlTagMarker -public inline fun TagConsumer.keyGen( - keyType: KeyGenKeyType? = null, - classes: String? = null, - crossinline block: KEYGEN.() -> Unit = {}, -): HTMLElement = KEYGEN(attributesMapOf("keytype", keyType?.enumEncode(),"class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.keyGen(keyType : KeyGenKeyType? = null, classes : String? = null, crossinline block : KEYGEN.() -> Unit = {}) : HTMLElement = KEYGEN(attributesMapOf("keytype", keyType?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) /** * Form field label text */ @HtmlTagMarker -public inline fun TagConsumer.label(classes: String? = null, crossinline - block: LABEL.() -> Unit = {}): HTMLLabelElement = LABEL(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) as HTMLLabelElement +public inline fun TagConsumer.label(classes : String? = null, crossinline block : LABEL.() -> Unit = {}) : HTMLLabelElement = LABEL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLLabelElement /** * Fieldset legend */ @HtmlTagMarker -public inline fun TagConsumer.legend(classes: String? = null, crossinline - block: LEGEND.() -> Unit = {}): HTMLLegendElement = LEGEND(attributesMapOf("class", classes), - this) - .visitAndFinalize(this, block) as HTMLLegendElement +public inline fun TagConsumer.legend(classes : String? = null, crossinline block : LEGEND.() -> Unit = {}) : HTMLLegendElement = LEGEND(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLLegendElement /** * List item */ @HtmlTagMarker -public inline fun TagConsumer.li(classes: String? = null, crossinline - block: LI.() -> Unit = {}): HTMLLIElement = LI(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) as HTMLLIElement +public inline fun TagConsumer.li(classes : String? = null, crossinline block : LI.() -> Unit = {}) : HTMLLIElement = LI(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLLIElement /** * A media-independent link */ @HtmlTagMarker -public inline fun TagConsumer.link( - href: String? = null, - rel: String? = null, - type: String? = null, - crossinline block: LINK.() -> Unit = {}, -): HTMLLinkElement = LINK(attributesMapOf("href", href,"rel", rel,"type", type), this) - .visitAndFinalize(this, block) as HTMLLinkElement +public inline fun TagConsumer.link(href : String? = null, rel : String? = null, type : String? = null, crossinline block : LINK.() -> Unit = {}) : HTMLLinkElement = LINK(attributesMapOf("href", href,"rel", rel,"type", type), this).visitAndFinalize(this, block) as HTMLLinkElement /** * Container for the dominant contents of another element */ @HtmlTagMarker -public inline fun TagConsumer.main(classes: String? = null, crossinline - block: MAIN.() -> Unit = {}): HTMLElement = MAIN(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.main(classes : String? = null, crossinline block : MAIN.() -> Unit = {}) : HTMLElement = MAIN(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Client-side image map */ @HtmlTagMarker -public inline fun TagConsumer.map( - name: String? = null, - classes: String? = null, - crossinline block: MAP.() -> Unit = {}, -): HTMLMapElement = MAP(attributesMapOf("name", name,"class", classes), this) - .visitAndFinalize(this, block) as HTMLMapElement +public inline fun TagConsumer.map(name : String? = null, classes : String? = null, crossinline block : MAP.() -> Unit = {}) : HTMLMapElement = MAP(attributesMapOf("name", name,"class", classes), this).visitAndFinalize(this, block) as HTMLMapElement /** * Highlight */ @HtmlTagMarker -public inline fun TagConsumer.mark(classes: String? = null, crossinline - block: MARK.() -> Unit = {}): HTMLElement = MARK(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.mark(classes : String? = null, crossinline block : MARK.() -> Unit = {}) : HTMLElement = MARK(attributesMapOf("class", classes), this).visitAndFinalize(this, block) @HtmlTagMarker -public inline fun TagConsumer.math(classes: String? = null, crossinline - block: MATH.() -> Unit = {}): HTMLElement = MATH(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.math(classes : String? = null, crossinline block : MATH.() -> Unit = {}) : HTMLElement = MATH(attributesMapOf("class", classes), this).visitAndFinalize(this, block) @HtmlTagMarker -public fun TagConsumer.mathml(classes: String? = null, content: String = ""): - HTMLElement = MATHML(attributesMapOf("class", classes), this) - .visitAndFinalize(this, {+content}) - +public fun TagConsumer.mathml(classes : String? = null, content : String = "") : HTMLElement = MATHML(attributesMapOf("class", classes), this).visitAndFinalize(this, {+content}) @HtmlTagMarker -public inline fun TagConsumer.mathml(classes: String? = null, crossinline - block: MATHML.() -> Unit = {}): HTMLElement = MATHML(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.mathml(classes : String? = null, crossinline block : MATHML.() -> Unit = {}) : HTMLElement = MATHML(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Generic metainformation */ @HtmlTagMarker -public inline fun TagConsumer.meta( - name: String? = null, - content: String? = null, - charset: String? = null, - crossinline block: META.() -> Unit = {}, -): HTMLMetaElement = META(attributesMapOf("name", name,"content", content,"charset", charset), this) - .visitAndFinalize(this, block) as HTMLMetaElement +public inline fun TagConsumer.meta(name : String? = null, content : String? = null, charset : String? = null, crossinline block : META.() -> Unit = {}) : HTMLMetaElement = META(attributesMapOf("name", name,"content", content,"charset", charset), this).visitAndFinalize(this, block) as HTMLMetaElement /** * Gauge */ @HtmlTagMarker -public inline fun TagConsumer.meter(classes: String? = null, crossinline - block: METER.() -> Unit = {}): HTMLMeterElement = METER(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) as HTMLMeterElement +public inline fun TagConsumer.meter(classes : String? = null, crossinline block : METER.() -> Unit = {}) : HTMLMeterElement = METER(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLMeterElement /** * Section with navigational links */ @HtmlTagMarker -public inline fun TagConsumer.nav(classes: String? = null, crossinline - block: NAV.() -> Unit = {}): HTMLElement = NAV(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.nav(classes : String? = null, crossinline block : NAV.() -> Unit = {}) : HTMLElement = NAV(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Generic metainformation */ @HtmlTagMarker -public inline fun TagConsumer.noScript(classes: String? = null, crossinline - block: NOSCRIPT.() -> Unit = {}): HTMLElement = NOSCRIPT(attributesMapOf("class", classes), - this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.noScript(classes : String? = null, crossinline block : NOSCRIPT.() -> Unit = {}) : HTMLElement = NOSCRIPT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Generic embedded object */ @HtmlTagMarker -public inline fun TagConsumer.htmlObject(classes: String? = null, crossinline - block: OBJECT.() -> Unit = {}): HTMLElement = OBJECT(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.htmlObject(classes : String? = null, crossinline block : OBJECT.() -> Unit = {}) : HTMLElement = OBJECT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Ordered list */ @HtmlTagMarker -public inline fun TagConsumer.ol(classes: String? = null, crossinline - block: OL.() -> Unit = {}): HTMLElement = OL(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.ol(classes : String? = null, crossinline block : OL.() -> Unit = {}) : HTMLElement = OL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Option group */ @HtmlTagMarker -public inline fun TagConsumer.optGroup( - label: String? = null, - classes: String? = null, - crossinline block: OPTGROUP.() -> Unit = {}, -): HTMLOptGroupElement = OPTGROUP(attributesMapOf("label", label,"class", classes), this) - .visitAndFinalize(this, block) as HTMLOptGroupElement +public inline fun TagConsumer.optGroup(label : String? = null, classes : String? = null, crossinline block : OPTGROUP.() -> Unit = {}) : HTMLOptGroupElement = OPTGROUP(attributesMapOf("label", label,"class", classes), this).visitAndFinalize(this, block) as HTMLOptGroupElement /** * Selectable choice */ @HtmlTagMarker -public fun TagConsumer.option(classes: String? = null, content: String = ""): - HTMLOptionElement = OPTION(attributesMapOf("class", classes), this) - .visitAndFinalize(this, {+content}) as HTMLOptionElement - +public fun TagConsumer.option(classes : String? = null, content : String = "") : HTMLOptionElement = OPTION(attributesMapOf("class", classes), this).visitAndFinalize(this, {+content}) as HTMLOptionElement /** * Selectable choice */ @HtmlTagMarker -public inline fun TagConsumer.option(classes: String? = null, crossinline - block: OPTION.() -> Unit = {}): HTMLOptionElement = OPTION(attributesMapOf("class", classes), - this) - .visitAndFinalize(this, block) as HTMLOptionElement +public inline fun TagConsumer.option(classes : String? = null, crossinline block : OPTION.() -> Unit = {}) : HTMLOptionElement = OPTION(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLOptionElement /** * Calculated output value */ @HtmlTagMarker -public inline fun TagConsumer.output(classes: String? = null, crossinline - block: OUTPUT.() -> Unit = {}): HTMLOutputElement = OUTPUT(attributesMapOf("class", classes), - this) - .visitAndFinalize(this, block) as HTMLOutputElement +public inline fun TagConsumer.output(classes : String? = null, crossinline block : OUTPUT.() -> Unit = {}) : HTMLOutputElement = OUTPUT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLOutputElement /** * Paragraph */ @HtmlTagMarker -public inline fun TagConsumer.p(classes: String? = null, crossinline - block: P.() -> Unit = {}): HTMLParagraphElement = P(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) as HTMLParagraphElement +public inline fun TagConsumer.p(classes : String? = null, crossinline block : P.() -> Unit = {}) : HTMLParagraphElement = P(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLParagraphElement /** * Named property value */ @HtmlTagMarker -public inline fun TagConsumer.`param`( - name: String? = null, - `value`: String? = null, - crossinline block: PARAM.() -> Unit = {}, -): HTMLParamElement = PARAM(attributesMapOf("name", name,"value", value), this) - .visitAndFinalize(this, block) as HTMLParamElement +public inline fun TagConsumer.param(name : String? = null, value : String? = null, crossinline block : PARAM.() -> Unit = {}) : HTMLParamElement = PARAM(attributesMapOf("name", name,"value", value), this).visitAndFinalize(this, block) as HTMLParamElement /** * Pictures container */ @HtmlTagMarker -public inline fun TagConsumer.picture(crossinline block: PICTURE.() -> Unit = {}): - HTMLPictureElement = PICTURE(emptyMap, this) - .visitAndFinalize(this, block) as HTMLPictureElement +public inline fun TagConsumer.picture(crossinline block : PICTURE.() -> Unit = {}) : HTMLPictureElement = PICTURE(emptyMap, this).visitAndFinalize(this, block) as HTMLPictureElement /** * Preformatted text */ @HtmlTagMarker -public inline fun TagConsumer.pre(classes: String? = null, crossinline - block: PRE.() -> Unit = {}): HTMLPreElement = PRE(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) as HTMLPreElement +public inline fun TagConsumer.pre(classes : String? = null, crossinline block : PRE.() -> Unit = {}) : HTMLPreElement = PRE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLPreElement /** * Progress bar */ @HtmlTagMarker -public inline fun TagConsumer.progress(classes: String? = null, crossinline - block: PROGRESS.() -> Unit = {}): HTMLProgressElement = PROGRESS(attributesMapOf("class", - classes), this) - .visitAndFinalize(this, block) as HTMLProgressElement +public inline fun TagConsumer.progress(classes : String? = null, crossinline block : PROGRESS.() -> Unit = {}) : HTMLProgressElement = PROGRESS(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLProgressElement /** * Short inline quotation */ @HtmlTagMarker -public inline fun TagConsumer.q(classes: String? = null, crossinline - block: Q.() -> Unit = {}): HTMLElement = Q(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.q(classes : String? = null, crossinline block : Q.() -> Unit = {}) : HTMLElement = Q(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Parenthesis for ruby annotation text */ @HtmlTagMarker -public inline fun TagConsumer.rp(classes: String? = null, crossinline - block: RP.() -> Unit = {}): HTMLElement = RP(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.rp(classes : String? = null, crossinline block : RP.() -> Unit = {}) : HTMLElement = RP(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Ruby annotation text */ @HtmlTagMarker -public inline fun TagConsumer.rt(classes: String? = null, crossinline - block: RT.() -> Unit = {}): HTMLElement = RT(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.rt(classes : String? = null, crossinline block : RT.() -> Unit = {}) : HTMLElement = RT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Ruby annotation(s) */ @HtmlTagMarker -public inline fun TagConsumer.ruby(classes: String? = null, crossinline - block: RUBY.() -> Unit = {}): HTMLElement = RUBY(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.ruby(classes : String? = null, crossinline block : RUBY.() -> Unit = {}) : HTMLElement = RUBY(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Strike-through text style */ @HtmlTagMarker -public inline fun TagConsumer.s(classes: String? = null, crossinline - block: S.() -> Unit = {}): HTMLElement = S(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) - -/** - * Computer output text style - */ -@HtmlTagMarker -public inline fun TagConsumer.samp(classes: String? = null, crossinline - block: SAMP.() -> Unit = {}): HTMLElement = SAMP(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.samp(classes : String? = null, crossinline block : SAMP.() -> Unit = {}) : HTMLElement = SAMP(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") +@Suppress("DEPRECATION") /** * Script statements */ @HtmlTagMarker -@Suppress("DEPRECATION") -@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") -public fun TagConsumer.script( - type: String? = null, - src: String? = null, - crossorigin: ScriptCrossorigin? = null, - content: String = "", -): HTMLScriptElement = SCRIPT(attributesMapOf("type", type,"src", src,"crossorigin", - crossorigin?.enumEncode()), this) - .visitAndFinalize(this, {+content}) as HTMLScriptElement - +public fun TagConsumer.script(type : String? = null, src : String? = null, content : String = "") : HTMLScriptElement = SCRIPT(attributesMapOf("type", type,"src", src), this).visitAndFinalize(this, {+content}) as HTMLScriptElement /** * Script statements */ @HtmlTagMarker -public inline fun TagConsumer.script( - type: String? = null, - src: String? = null, - crossorigin: ScriptCrossorigin? = null, - crossinline block: SCRIPT.() -> Unit = {}, -): HTMLScriptElement = SCRIPT(attributesMapOf("type", type,"src", src,"crossorigin", - crossorigin?.enumEncode()), this) - .visitAndFinalize(this, block) as HTMLScriptElement +public inline fun TagConsumer.script(type : String? = null, src : String? = null, crossinline block : SCRIPT.() -> Unit = {}) : HTMLScriptElement = SCRIPT(attributesMapOf("type", type,"src", src), this).visitAndFinalize(this, block) as HTMLScriptElement /** * Generic document or application section */ @HtmlTagMarker -public inline fun TagConsumer.section(classes: String? = null, crossinline - block: SECTION.() -> Unit = {}): HTMLElement = SECTION(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.section(classes : String? = null, crossinline block : SECTION.() -> Unit = {}) : HTMLElement = SECTION(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Option selector */ @HtmlTagMarker -public inline fun TagConsumer.select(classes: String? = null, crossinline - block: SELECT.() -> Unit = {}): HTMLSelectElement = SELECT(attributesMapOf("class", classes), - this) - .visitAndFinalize(this, block) as HTMLSelectElement +public inline fun TagConsumer.select(classes : String? = null, crossinline block : SELECT.() -> Unit = {}) : HTMLSelectElement = SELECT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLSelectElement /** * Small text style */ @HtmlTagMarker -public inline fun TagConsumer.small(classes: String? = null, crossinline - block: SMALL.() -> Unit = {}): HTMLElement = SMALL(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.small(classes : String? = null, crossinline block : SMALL.() -> Unit = {}) : HTMLElement = SMALL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Media source for */ @HtmlTagMarker -public inline fun TagConsumer.source(classes: String? = null, crossinline - block: SOURCE.() -> Unit = {}): HTMLSourceElement = SOURCE(attributesMapOf("class", classes), - this) - .visitAndFinalize(this, block) as HTMLSourceElement +public inline fun TagConsumer.source(classes : String? = null, crossinline block : SOURCE.() -> Unit = {}) : HTMLSourceElement = SOURCE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLSourceElement /** * Generic language/style container */ @HtmlTagMarker -public inline fun TagConsumer.span(classes: String? = null, crossinline - block: SPAN.() -> Unit = {}): HTMLSpanElement = SPAN(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) as HTMLSpanElement +public inline fun TagConsumer.span(classes : String? = null, crossinline block : SPAN.() -> Unit = {}) : HTMLSpanElement = SPAN(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLSpanElement /** * Strong emphasis */ @HtmlTagMarker -public inline fun TagConsumer.strong(classes: String? = null, crossinline - block: STRONG.() -> Unit = {}): HTMLElement = STRONG(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.strong(classes : String? = null, crossinline block : STRONG.() -> Unit = {}) : HTMLElement = STRONG(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") +@Suppress("DEPRECATION") /** * Style info */ @HtmlTagMarker -@Suppress("DEPRECATION") -@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") -public fun TagConsumer.style(type: String? = null, content: String = ""): - HTMLStyleElement = STYLE(attributesMapOf("type", type), this) - .visitAndFinalize(this, {+content}) as HTMLStyleElement - +public fun TagConsumer.style(type : String? = null, content : String = "") : HTMLStyleElement = STYLE(attributesMapOf("type", type), this).visitAndFinalize(this, {+content}) as HTMLStyleElement /** * Style info */ @HtmlTagMarker -public inline fun TagConsumer.style(type: String? = null, crossinline - block: STYLE.() -> Unit = {}): HTMLStyleElement = STYLE(attributesMapOf("type", type), this) - .visitAndFinalize(this, block) as HTMLStyleElement +public inline fun TagConsumer.style(type : String? = null, crossinline block : STYLE.() -> Unit = {}) : HTMLStyleElement = STYLE(attributesMapOf("type", type), this).visitAndFinalize(this, block) as HTMLStyleElement /** * Subscript */ @HtmlTagMarker -public inline fun TagConsumer.sub(classes: String? = null, crossinline - block: SUB.() -> Unit = {}): HTMLElement = SUB(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.sub(classes : String? = null, crossinline block : SUB.() -> Unit = {}) : HTMLElement = SUB(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Caption for */ @HtmlTagMarker -public inline fun TagConsumer.summary(classes: String? = null, crossinline - block: SUMMARY.() -> Unit = {}): HTMLElement = SUMMARY(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.summary(classes : String? = null, crossinline block : SUMMARY.() -> Unit = {}) : HTMLElement = SUMMARY(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Superscript */ @HtmlTagMarker -public inline fun TagConsumer.sup(classes: String? = null, crossinline - block: SUP.() -> Unit = {}): HTMLElement = SUP(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.sup(classes : String? = null, crossinline block : SUP.() -> Unit = {}) : HTMLElement = SUP(attributesMapOf("class", classes), this).visitAndFinalize(this, block) @HtmlTagMarker -public fun TagConsumer.svg(classes: String? = null, content: String = ""): HTMLElement - = SVG(attributesMapOf("class", classes), this) - .visitAndFinalize(this, {+content}) - +public fun TagConsumer.svg(classes : String? = null, content : String = "") : HTMLElement = SVG(attributesMapOf("class", classes), this).visitAndFinalize(this, {+content}) @HtmlTagMarker -public inline fun TagConsumer.svg(classes: String? = null, crossinline - block: SVG.() -> Unit = {}): HTMLElement = SVG(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.svg(classes : String? = null, crossinline block : SVG.() -> Unit = {}) : HTMLElement = SVG(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** - * + * */ @HtmlTagMarker -public inline fun TagConsumer.table(classes: String? = null, crossinline - block: TABLE.() -> Unit = {}): HTMLTableElement = TABLE(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) as HTMLTableElement +public inline fun TagConsumer.table(classes : String? = null, crossinline block : TABLE.() -> Unit = {}) : HTMLTableElement = TABLE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLTableElement /** * Table body */ @HtmlTagMarker -public inline fun TagConsumer.tbody(classes: String? = null, crossinline - block: TBODY.() -> Unit = {}): HTMLTableSectionElement = TBODY(attributesMapOf("class", - classes), this) - .visitAndFinalize(this, block) as HTMLTableSectionElement +public inline fun TagConsumer.tbody(classes : String? = null, crossinline block : TBODY.() -> Unit = {}) : HTMLTableSectionElement = TBODY(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLTableSectionElement /** * Table data cell */ @HtmlTagMarker -public inline fun TagConsumer.td(classes: String? = null, crossinline - block: TD.() -> Unit = {}): HTMLTableCellElement = TD(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) as HTMLTableCellElement +public inline fun TagConsumer.td(classes : String? = null, crossinline block : TD.() -> Unit = {}) : HTMLTableCellElement = TD(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLTableCellElement /** * Multi-line text field */ @HtmlTagMarker -public fun TagConsumer.textArea( - rows: String? = null, - cols: String? = null, - wrap: TextAreaWrap? = null, - classes: String? = null, - content: String = "", -): HTMLTextAreaElement = TEXTAREA(attributesMapOf("rows", rows,"cols", cols,"wrap", - wrap?.enumEncode(),"class", classes), this) - .visitAndFinalize(this, {+content}) as HTMLTextAreaElement - +public fun TagConsumer.textArea(rows : String? = null, cols : String? = null, wrap : TextAreaWrap? = null, classes : String? = null, content : String = "") : HTMLTextAreaElement = TEXTAREA(attributesMapOf("rows", rows,"cols", cols,"wrap", wrap?.enumEncode(),"class", classes), this).visitAndFinalize(this, {+content}) as HTMLTextAreaElement /** * Multi-line text field */ @HtmlTagMarker -public inline fun TagConsumer.textArea( - rows: String? = null, - cols: String? = null, - wrap: TextAreaWrap? = null, - classes: String? = null, - crossinline block: TEXTAREA.() -> Unit = {}, -): HTMLTextAreaElement = TEXTAREA(attributesMapOf("rows", rows,"cols", cols,"wrap", - wrap?.enumEncode(),"class", classes), this) - .visitAndFinalize(this, block) as HTMLTextAreaElement +public inline fun TagConsumer.textArea(rows : String? = null, cols : String? = null, wrap : TextAreaWrap? = null, classes : String? = null, crossinline block : TEXTAREA.() -> Unit = {}) : HTMLTextAreaElement = TEXTAREA(attributesMapOf("rows", rows,"cols", cols,"wrap", wrap?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) as HTMLTextAreaElement /** * Table footer */ @HtmlTagMarker -public inline fun TagConsumer.tfoot(classes: String? = null, crossinline - block: TFOOT.() -> Unit = {}): HTMLTableSectionElement = TFOOT(attributesMapOf("class", - classes), this) - .visitAndFinalize(this, block) as HTMLTableSectionElement +public inline fun TagConsumer.tfoot(classes : String? = null, crossinline block : TFOOT.() -> Unit = {}) : HTMLTableSectionElement = TFOOT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLTableSectionElement /** * Table header cell */ @HtmlTagMarker -public inline fun TagConsumer.th( - scope: ThScope? = null, - classes: String? = null, - crossinline block: TH.() -> Unit = {}, -): HTMLTableCellElement = TH(attributesMapOf("scope", scope?.enumEncode(),"class", classes), this) - .visitAndFinalize(this, block) as HTMLTableCellElement +public inline fun TagConsumer.th(scope : ThScope? = null, classes : String? = null, crossinline block : TH.() -> Unit = {}) : HTMLTableCellElement = TH(attributesMapOf("scope", scope?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) as HTMLTableCellElement /** * Table header */ @HtmlTagMarker -public inline fun TagConsumer.thead(classes: String? = null, crossinline - block: THEAD.() -> Unit = {}): HTMLTableSectionElement = THEAD(attributesMapOf("class", - classes), this) - .visitAndFinalize(this, block) as HTMLTableSectionElement +public inline fun TagConsumer.thead(classes : String? = null, crossinline block : THEAD.() -> Unit = {}) : HTMLTableSectionElement = THEAD(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLTableSectionElement /** * Machine-readable equivalent of date- or time-related data */ @HtmlTagMarker -public inline fun TagConsumer.time(classes: String? = null, crossinline - block: TIME.() -> Unit = {}): HTMLTimeElement = TIME(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) as HTMLTimeElement +public inline fun TagConsumer.time(classes : String? = null, crossinline block : TIME.() -> Unit = {}) : HTMLTimeElement = TIME(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLTimeElement /** * Document title */ @HtmlTagMarker -public fun TagConsumer.title(content: String = ""): HTMLTitleElement = TITLE(emptyMap, - this) - .visitAndFinalize(this, {+content}) as HTMLTitleElement - +public fun TagConsumer.title(content : String = "") : HTMLTitleElement = TITLE(emptyMap, this).visitAndFinalize(this, {+content}) as HTMLTitleElement /** * Document title */ @HtmlTagMarker -public inline fun TagConsumer.title(crossinline block: TITLE.() -> Unit = {}): - HTMLTitleElement = TITLE(emptyMap, this) - .visitAndFinalize(this, block) as HTMLTitleElement +public inline fun TagConsumer.title(crossinline block : TITLE.() -> Unit = {}) : HTMLTitleElement = TITLE(emptyMap, this).visitAndFinalize(this, block) as HTMLTitleElement /** * Table row */ @HtmlTagMarker -public inline fun TagConsumer.tr(classes: String? = null, crossinline - block: TR.() -> Unit = {}): HTMLTableRowElement = TR(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) as HTMLTableRowElement - -/** - * Underlined text style - */ -@HtmlTagMarker -public inline fun TagConsumer.u(classes: String? = null, crossinline - block: U.() -> Unit = {}): HTMLElement = U(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.tr(classes : String? = null, crossinline block : TR.() -> Unit = {}) : HTMLTableRowElement = TR(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLTableRowElement /** * Unordered list */ @HtmlTagMarker -public inline fun TagConsumer.ul(classes: String? = null, crossinline - block: UL.() -> Unit = {}): HTMLElement = UL(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.ul(classes : String? = null, crossinline block : UL.() -> Unit = {}) : HTMLElement = UL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Unordered list */ @HtmlTagMarker -public inline fun TagConsumer.htmlVar(classes: String? = null, crossinline - block: VAR.() -> Unit = {}): HTMLElement = VAR(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) +public inline fun TagConsumer.htmlVar(classes : String? = null, crossinline block : VAR.() -> Unit = {}) : HTMLElement = VAR(attributesMapOf("class", classes), this).visitAndFinalize(this, block) /** * Video player */ @HtmlTagMarker -public inline fun TagConsumer.video(classes: String? = null, crossinline - block: VIDEO.() -> Unit = {}): HTMLVideoElement = VIDEO(attributesMapOf("class", classes), this) - .visitAndFinalize(this, block) as HTMLVideoElement +public inline fun TagConsumer.video(classes : String? = null, crossinline block : VIDEO.() -> Unit = {}) : HTMLVideoElement = VIDEO(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLVideoElement + From 909d980c71b0d0d7a6b4f7150d92835b22d1c921 Mon Sep 17 00:00:00 2001 From: "leonid.stashevsky" Date: Mon, 15 Jan 2024 13:07:50 +0100 Subject: [PATCH 2/2] fixup! Added loading attribute to img tag; Added warning suppression for capitalizing enum names --- api/kotlinx-html.api | 31 +- .../kotlin/generated/gen-consumer-tags.kt | 755 +++++++++++++--- src/commonMain/kotlin/generated/gen-enums.kt | 2 - .../kotlin/generated/gen-consumer-tags-js.kt | 828 +++++++++++++++--- .../generated/gen-consumer-tags-wasm-js.kt | 5 +- 5 files changed, 1341 insertions(+), 280 deletions(-) diff --git a/api/kotlinx-html.api b/api/kotlinx-html.api index 72adeb65..59fd77cf 100644 --- a/api/kotlinx-html.api +++ b/api/kotlinx-html.api @@ -1262,8 +1262,8 @@ public final class kotlinx/html/Gen_consumer_tagsKt { public static final fun iframe (Lkotlinx/html/TagConsumer;Lkotlinx/html/IframeSandbox;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static synthetic fun iframe$default (Lkotlinx/html/TagConsumer;Lkotlinx/html/IframeSandbox;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ljava/lang/Object; public static synthetic fun iframe$default (Lkotlinx/html/TagConsumer;Lkotlinx/html/IframeSandbox;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/Object; - public static final fun img (Lkotlinx/html/TagConsumer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; - public static synthetic fun img$default (Lkotlinx/html/TagConsumer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/Object; + public static final fun img (Lkotlinx/html/TagConsumer;Ljava/lang/String;Ljava/lang/String;Lkotlinx/html/ImgLoading;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + public static synthetic fun img$default (Lkotlinx/html/TagConsumer;Ljava/lang/String;Ljava/lang/String;Lkotlinx/html/ImgLoading;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/Object; public static final fun input (Lkotlinx/html/TagConsumer;Lkotlinx/html/InputType;Lkotlinx/html/InputFormEncType;Lkotlinx/html/InputFormMethod;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static synthetic fun input$default (Lkotlinx/html/TagConsumer;Lkotlinx/html/InputType;Lkotlinx/html/InputFormEncType;Lkotlinx/html/InputFormMethod;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/Object; public static final fun ins (Lkotlinx/html/TagConsumer;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; @@ -1532,6 +1532,8 @@ public final class kotlinx/html/Gen_tag_unionsKt { public static synthetic fun details$default (Lkotlinx/html/FlowOrInteractiveContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public static final fun dfn (Lkotlinx/html/FlowOrPhrasingContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun dfn$default (Lkotlinx/html/FlowOrPhrasingContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V + public static final fun eagerImg (Lkotlinx/html/FlowOrInteractiveOrPhrasingContent;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V + public static synthetic fun eagerImg$default (Lkotlinx/html/FlowOrInteractiveOrPhrasingContent;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public static final fun em (Lkotlinx/html/FlowOrPhrasingContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun em$default (Lkotlinx/html/FlowOrPhrasingContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public static final fun emailInput (Lkotlinx/html/FlowOrInteractiveOrPhrasingContent;Lkotlinx/html/InputFormEncType;Lkotlinx/html/InputFormMethod;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V @@ -1574,8 +1576,8 @@ public final class kotlinx/html/Gen_tag_unionsKt { public static synthetic fun iframe$default (Lkotlinx/html/FlowOrInteractiveOrPhrasingContent;Lkotlinx/html/IframeSandbox;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public static final fun imageInput (Lkotlinx/html/FlowOrInteractiveOrPhrasingContent;Lkotlinx/html/InputFormEncType;Lkotlinx/html/InputFormMethod;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun imageInput$default (Lkotlinx/html/FlowOrInteractiveOrPhrasingContent;Lkotlinx/html/InputFormEncType;Lkotlinx/html/InputFormMethod;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V - public static final fun img (Lkotlinx/html/FlowOrInteractiveOrPhrasingContent;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V - public static synthetic fun img$default (Lkotlinx/html/FlowOrInteractiveOrPhrasingContent;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V + public static final fun img (Lkotlinx/html/FlowOrInteractiveOrPhrasingContent;Ljava/lang/String;Ljava/lang/String;Lkotlinx/html/ImgLoading;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V + public static synthetic fun img$default (Lkotlinx/html/FlowOrInteractiveOrPhrasingContent;Ljava/lang/String;Ljava/lang/String;Lkotlinx/html/ImgLoading;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public static final fun input (Lkotlinx/html/FlowOrInteractiveOrPhrasingContent;Lkotlinx/html/InputType;Lkotlinx/html/InputFormEncType;Lkotlinx/html/InputFormMethod;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun input$default (Lkotlinx/html/FlowOrInteractiveOrPhrasingContent;Lkotlinx/html/InputType;Lkotlinx/html/InputFormEncType;Lkotlinx/html/InputFormMethod;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public static final fun ins (Lkotlinx/html/FlowOrPhrasingContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V @@ -1586,6 +1588,8 @@ public final class kotlinx/html/Gen_tag_unionsKt { public static synthetic fun keyGen$default (Lkotlinx/html/FlowOrInteractiveOrPhrasingContent;Lkotlinx/html/KeyGenKeyType;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public static final fun label (Lkotlinx/html/FlowOrInteractiveOrPhrasingContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun label$default (Lkotlinx/html/FlowOrInteractiveOrPhrasingContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V + public static final fun lazyImg (Lkotlinx/html/FlowOrInteractiveOrPhrasingContent;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V + public static synthetic fun lazyImg$default (Lkotlinx/html/FlowOrInteractiveOrPhrasingContent;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public static final fun link (Lkotlinx/html/FlowOrMetaDataOrPhrasingContent;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun link$default (Lkotlinx/html/FlowOrMetaDataOrPhrasingContent;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public static final fun main (Lkotlinx/html/SectioningOrFlowContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V @@ -1882,6 +1886,8 @@ public final class kotlinx/html/Gen_tags_oKt { } public final class kotlinx/html/Gen_tags_pKt { + public static final fun eagerImg (Lkotlinx/html/PICTURE;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V + public static synthetic fun eagerImg$default (Lkotlinx/html/PICTURE;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public static final fun getAsFlowContent (Lkotlinx/html/P;)Lkotlinx/html/FlowContent; public static final fun getAsFlowContent (Lkotlinx/html/PICTURE;)Lkotlinx/html/FlowContent; public static final fun getAsFlowContent (Lkotlinx/html/PRE;)Lkotlinx/html/FlowContent; @@ -1891,8 +1897,10 @@ public final class kotlinx/html/Gen_tags_pKt { public static final fun getAsPhrasingContent (Lkotlinx/html/PICTURE;)Lkotlinx/html/PhrasingContent; public static final fun getAsPhrasingContent (Lkotlinx/html/PRE;)Lkotlinx/html/PhrasingContent; public static final fun getAsPhrasingContent (Lkotlinx/html/PROGRESS;)Lkotlinx/html/PhrasingContent; - public static final fun img (Lkotlinx/html/PICTURE;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V - public static synthetic fun img$default (Lkotlinx/html/PICTURE;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V + public static final fun img (Lkotlinx/html/PICTURE;Ljava/lang/String;Ljava/lang/String;Lkotlinx/html/ImgLoading;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V + public static synthetic fun img$default (Lkotlinx/html/PICTURE;Ljava/lang/String;Ljava/lang/String;Lkotlinx/html/ImgLoading;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V + public static final fun lazyImg (Lkotlinx/html/PICTURE;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V + public static synthetic fun lazyImg$default (Lkotlinx/html/PICTURE;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public static final fun source (Lkotlinx/html/PICTURE;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun source$default (Lkotlinx/html/PICTURE;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V } @@ -2179,12 +2187,14 @@ public class kotlinx/html/IMG : kotlinx/html/HTMLTag, kotlinx/html/CommonAttribu public fun getConsumer ()Lkotlinx/html/TagConsumer; public final fun getHeight ()Ljava/lang/String; public final fun getIsmap ()Z + public final fun getLoading ()Lkotlinx/html/ImgLoading; public final fun getSrc ()Ljava/lang/String; public final fun getUsemap ()Ljava/lang/String; public final fun getWidth ()Ljava/lang/String; public final fun setAlt (Ljava/lang/String;)V public final fun setHeight (Ljava/lang/String;)V public final fun setIsmap (Z)V + public final fun setLoading (Lkotlinx/html/ImgLoading;)V public final fun setSrc (Ljava/lang/String;)V public final fun setUsemap (Ljava/lang/String;)V public final fun setWidth (Ljava/lang/String;)V @@ -2285,6 +2295,15 @@ public final class kotlinx/html/IframeSandbox : java/lang/Enum, kotlinx/html/Att public static fun values ()[Lkotlinx/html/IframeSandbox; } +public final class kotlinx/html/ImgLoading : java/lang/Enum, kotlinx/html/AttributeEnum { + public static final field eager Lkotlinx/html/ImgLoading; + public static final field lazy Lkotlinx/html/ImgLoading; + public static fun getEntries ()Lkotlin/enums/EnumEntries; + public fun getRealValue ()Ljava/lang/String; + public static fun valueOf (Ljava/lang/String;)Lkotlinx/html/ImgLoading; + public static fun values ()[Lkotlinx/html/ImgLoading; +} + public final class kotlinx/html/InputFormEncType : java/lang/Enum, kotlinx/html/AttributeEnum { public static final field applicationXWwwFormUrlEncoded Lkotlinx/html/InputFormEncType; public static final field multipartFormData Lkotlinx/html/InputFormEncType; diff --git a/src/commonMain/kotlin/generated/gen-consumer-tags.kt b/src/commonMain/kotlin/generated/gen-consumer-tags.kt index 9a320bf2..c0946941 100644 --- a/src/commonMain/kotlin/generated/gen-consumer-tags.kt +++ b/src/commonMain/kotlin/generated/gen-consumer-tags.kt @@ -1,707 +1,1192 @@ +/******************************************************************************* + DO NOT EDIT + This file was generated by module generate +*******************************************************************************/ package kotlinx.html import kotlinx.html.* -import kotlinx.html.impl.* import kotlinx.html.attributes.* -/******************************************************************************* - DO NOT EDIT - This file was generated by module generate -*******************************************************************************/ +import kotlin.Deprecated +import kotlin.String +import kotlin.Suppress +import kotlin.Unit +import kotlinx.html.A +import kotlinx.html.ABBR +import kotlinx.html.ADDRESS +import kotlinx.html.AREA +import kotlinx.html.ARTICLE +import kotlinx.html.ASIDE +import kotlinx.html.AUDIO +import kotlinx.html.AreaShape +import kotlinx.html.B +import kotlinx.html.BASE +import kotlinx.html.BDI +import kotlinx.html.BDO +import kotlinx.html.BLOCKQUOTE +import kotlinx.html.BODY +import kotlinx.html.BR +import kotlinx.html.BUTTON +import kotlinx.html.ButtonFormEncType +import kotlinx.html.ButtonFormMethod +import kotlinx.html.ButtonType +import kotlinx.html.CANVAS +import kotlinx.html.CAPTION +import kotlinx.html.CITE +import kotlinx.html.CODE +import kotlinx.html.COL +import kotlinx.html.COLGROUP +import kotlinx.html.COMMAND +import kotlinx.html.CommandType +import kotlinx.html.DATALIST +import kotlinx.html.DD +import kotlinx.html.DEL +import kotlinx.html.DETAILS +import kotlinx.html.DFN +import kotlinx.html.DIALOG +import kotlinx.html.DIV +import kotlinx.html.DL +import kotlinx.html.DT +import kotlinx.html.EM +import kotlinx.html.EMBED +import kotlinx.html.FIELDSET +import kotlinx.html.FIGCAPTION +import kotlinx.html.FIGURE +import kotlinx.html.FOOTER +import kotlinx.html.FORM +import kotlinx.html.FormEncType +import kotlinx.html.FormMethod +import kotlinx.html.H1 +import kotlinx.html.H2 +import kotlinx.html.H3 +import kotlinx.html.H4 +import kotlinx.html.H5 +import kotlinx.html.H6 +import kotlinx.html.HEAD +import kotlinx.html.HEADER +import kotlinx.html.HGROUP +import kotlinx.html.HR +import kotlinx.html.HTML +import kotlinx.html.HtmlTagMarker +import kotlinx.html.I +import kotlinx.html.IFRAME +import kotlinx.html.IMG +import kotlinx.html.INPUT +import kotlinx.html.INS +import kotlinx.html.IframeSandbox +import kotlinx.html.ImgLoading +import kotlinx.html.InputFormEncType +import kotlinx.html.InputFormMethod +import kotlinx.html.InputType +import kotlinx.html.KBD +import kotlinx.html.KEYGEN +import kotlinx.html.KeyGenKeyType +import kotlinx.html.LABEL +import kotlinx.html.LEGEND +import kotlinx.html.LI +import kotlinx.html.LINK +import kotlinx.html.MAIN +import kotlinx.html.MAP +import kotlinx.html.MARK +import kotlinx.html.MATH +import kotlinx.html.MATHML +import kotlinx.html.META +import kotlinx.html.METER +import kotlinx.html.NAV +import kotlinx.html.NOSCRIPT +import kotlinx.html.OBJECT +import kotlinx.html.OL +import kotlinx.html.OPTGROUP +import kotlinx.html.OPTION +import kotlinx.html.OUTPUT +import kotlinx.html.P +import kotlinx.html.PARAM +import kotlinx.html.PICTURE +import kotlinx.html.PRE +import kotlinx.html.PROGRESS +import kotlinx.html.Q +import kotlinx.html.RP +import kotlinx.html.RT +import kotlinx.html.RUBY +import kotlinx.html.S +import kotlinx.html.SAMP +import kotlinx.html.SCRIPT +import kotlinx.html.SECTION +import kotlinx.html.SELECT +import kotlinx.html.SMALL +import kotlinx.html.SOURCE +import kotlinx.html.SPAN +import kotlinx.html.STRONG +import kotlinx.html.STYLE +import kotlinx.html.SUB +import kotlinx.html.SUMMARY +import kotlinx.html.SUP +import kotlinx.html.SVG +import kotlinx.html.ScriptCrossorigin +import kotlinx.html.TABLE +import kotlinx.html.TBODY +import kotlinx.html.TD +import kotlinx.html.TEXTAREA +import kotlinx.html.TFOOT +import kotlinx.html.TH +import kotlinx.html.THEAD +import kotlinx.html.TIME +import kotlinx.html.TITLE +import kotlinx.html.TR +import kotlinx.html.TagConsumer +import kotlinx.html.TextAreaWrap +import kotlinx.html.ThScope +import kotlinx.html.U +import kotlinx.html.UL +import kotlinx.html.VAR +import kotlinx.html.VIDEO /** * Anchor */ @HtmlTagMarker -inline fun > C.a(href : String? = null, target : String? = null, classes : String? = null, crossinline block : A.() -> Unit = {}) : T = A(attributesMapOf("href", href,"target", target,"class", classes), this).visitAndFinalize(this, block) +public inline fun > C.a( + href: String? = null, + target: String? = null, + classes: String? = null, + crossinline block: A.() -> Unit = {}, +): T = A(attributesMapOf("href", href,"target", target,"class", classes), this) + .visitAndFinalize(this, block) /** * Abbreviated form (e.g., WWW, HTTP,etc.) */ @HtmlTagMarker -inline fun > C.abbr(classes : String? = null, crossinline block : ABBR.() -> Unit = {}) : T = ABBR(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.abbr(classes: String? = null, crossinline + block: ABBR.() -> Unit = {}): T = ABBR(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Information on author */ @HtmlTagMarker -inline fun > C.address(classes : String? = null, crossinline block : ADDRESS.() -> Unit = {}) : T = ADDRESS(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.address(classes: String? = null, crossinline + block: ADDRESS.() -> Unit = {}): T = ADDRESS(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Client-side image map area */ @HtmlTagMarker -inline fun > C.area(shape : AreaShape? = null, alt : String? = null, classes : String? = null, crossinline block : AREA.() -> Unit = {}) : T = AREA(attributesMapOf("Shape", shape?.enumEncode(),"alt", alt,"class", classes), this).visitAndFinalize(this, block) +public inline fun > C.area( + shape: AreaShape? = null, + alt: String? = null, + classes: String? = null, + crossinline block: AREA.() -> Unit = {}, +): T = AREA(attributesMapOf("Shape", shape?.enumEncode(),"alt", alt,"class", classes), this) + .visitAndFinalize(this, block) /** * Self-contained syndicatable or reusable composition */ @HtmlTagMarker -inline fun > C.article(classes : String? = null, crossinline block : ARTICLE.() -> Unit = {}) : T = ARTICLE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.article(classes: String? = null, crossinline + block: ARTICLE.() -> Unit = {}): T = ARTICLE(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Sidebar for tangentially related content */ @HtmlTagMarker -inline fun > C.aside(classes : String? = null, crossinline block : ASIDE.() -> Unit = {}) : T = ASIDE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.aside(classes: String? = null, crossinline + block: ASIDE.() -> Unit = {}): T = ASIDE(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Audio player */ @HtmlTagMarker -inline fun > C.audio(classes : String? = null, crossinline block : AUDIO.() -> Unit = {}) : T = AUDIO(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.audio(classes: String? = null, crossinline + block: AUDIO.() -> Unit = {}): T = AUDIO(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Bold text style */ @HtmlTagMarker -inline fun > C.b(classes : String? = null, crossinline block : B.() -> Unit = {}) : T = B(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.b(classes: String? = null, crossinline + block: B.() -> Unit = {}): T = B(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Document base URI */ @HtmlTagMarker -inline fun > C.base(classes : String? = null, crossinline block : BASE.() -> Unit = {}) : T = BASE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.base(classes: String? = null, crossinline + block: BASE.() -> Unit = {}): T = BASE(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Text directionality isolation */ @HtmlTagMarker -inline fun > C.bdi(classes : String? = null, crossinline block : BDI.() -> Unit = {}) : T = BDI(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.bdi(classes: String? = null, crossinline + block: BDI.() -> Unit = {}): T = BDI(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * I18N BiDi over-ride */ @HtmlTagMarker -inline fun > C.bdo(classes : String? = null, crossinline block : BDO.() -> Unit = {}) : T = BDO(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.bdo(classes: String? = null, crossinline + block: BDO.() -> Unit = {}): T = BDO(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Long quotation */ @HtmlTagMarker -inline fun > C.blockQuote(classes : String? = null, crossinline block : BLOCKQUOTE.() -> Unit = {}) : T = BLOCKQUOTE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.blockQuote(classes: String? = null, crossinline + block: BLOCKQUOTE.() -> Unit = {}): T = BLOCKQUOTE(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Document body */ @HtmlTagMarker -inline fun > C.body(classes : String? = null, crossinline block : BODY.() -> Unit = {}) : T = BODY(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.body(classes: String? = null, crossinline + block: BODY.() -> Unit = {}): T = BODY(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Forced line break */ @HtmlTagMarker -inline fun > C.br(classes : String? = null, crossinline block : BR.() -> Unit = {}) : T = BR(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.br(classes: String? = null, crossinline + block: BR.() -> Unit = {}): T = BR(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Push button */ @HtmlTagMarker -inline fun > C.button(formEncType : ButtonFormEncType? = null, formMethod : ButtonFormMethod? = null, name : String? = null, type : ButtonType? = null, classes : String? = null, crossinline block : BUTTON.() -> Unit = {}) : T = BUTTON(attributesMapOf("formenctype", formEncType?.enumEncode(),"formmethod", formMethod?.enumEncode(),"name", name,"type", type?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) +public inline fun > C.button( + formEncType: ButtonFormEncType? = null, + formMethod: ButtonFormMethod? = null, + name: String? = null, + type: ButtonType? = null, + classes: String? = null, + crossinline block: BUTTON.() -> Unit = {}, +): T = BUTTON(attributesMapOf("formenctype", formEncType?.enumEncode(),"formmethod", + formMethod?.enumEncode(),"name", name,"type", type?.enumEncode(),"class", classes), this) + .visitAndFinalize(this, block) /** * Scriptable bitmap canvas */ @HtmlTagMarker -fun > C.canvas(classes : String? = null, content : String = "") : T = CANVAS(attributesMapOf("class", classes), this).visitAndFinalize(this, {+content}) +public fun > C.canvas(classes: String? = null, content: String = ""): T = + CANVAS(attributesMapOf("class", classes), this) + .visitAndFinalize(this, {+content}) + /** * Scriptable bitmap canvas */ @HtmlTagMarker -inline fun > C.canvas(classes : String? = null, crossinline block : CANVAS.() -> Unit = {}) : T = CANVAS(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.canvas(classes: String? = null, crossinline + block: CANVAS.() -> Unit = {}): T = CANVAS(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Table caption */ @HtmlTagMarker -inline fun > C.caption(classes : String? = null, crossinline block : CAPTION.() -> Unit = {}) : T = CAPTION(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.caption(classes: String? = null, crossinline + block: CAPTION.() -> Unit = {}): T = CAPTION(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Citation */ @HtmlTagMarker -inline fun > C.cite(classes : String? = null, crossinline block : CITE.() -> Unit = {}) : T = CITE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.cite(classes: String? = null, crossinline + block: CITE.() -> Unit = {}): T = CITE(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Computer code fragment */ @HtmlTagMarker -inline fun > C.code(classes : String? = null, crossinline block : CODE.() -> Unit = {}) : T = CODE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.code(classes: String? = null, crossinline + block: CODE.() -> Unit = {}): T = CODE(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Table column */ @HtmlTagMarker -inline fun > C.col(classes : String? = null, crossinline block : COL.() -> Unit = {}) : T = COL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.col(classes: String? = null, crossinline + block: COL.() -> Unit = {}): T = COL(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Table column group */ @HtmlTagMarker -inline fun > C.colGroup(classes : String? = null, crossinline block : COLGROUP.() -> Unit = {}) : T = COLGROUP(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.colGroup(classes: String? = null, crossinline + block: COLGROUP.() -> Unit = {}): T = COLGROUP(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) @HtmlTagMarker -inline fun > C.command(type : CommandType? = null, classes : String? = null, crossinline block : COMMAND.() -> Unit = {}) : T = COMMAND(attributesMapOf("type", type?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) +public inline fun > C.command( + type: CommandType? = null, + classes: String? = null, + crossinline block: COMMAND.() -> Unit = {}, +): T = COMMAND(attributesMapOf("type", type?.enumEncode(),"class", classes), this) + .visitAndFinalize(this, block) /** * Container for options for */ @HtmlTagMarker -inline fun > C.dataList(classes : String? = null, crossinline block : DATALIST.() -> Unit = {}) : T = DATALIST(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.dataList(classes: String? = null, crossinline + block: DATALIST.() -> Unit = {}): T = DATALIST(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Definition description */ @HtmlTagMarker -inline fun > C.dd(classes : String? = null, crossinline block : DD.() -> Unit = {}) : T = DD(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.dd(classes: String? = null, crossinline + block: DD.() -> Unit = {}): T = DD(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Deleted text */ @HtmlTagMarker -inline fun > C.del(classes : String? = null, crossinline block : DEL.() -> Unit = {}) : T = DEL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.del(classes: String? = null, crossinline + block: DEL.() -> Unit = {}): T = DEL(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Disclosure control for hiding details */ @HtmlTagMarker -inline fun > C.details(classes : String? = null, crossinline block : DETAILS.() -> Unit = {}) : T = DETAILS(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.details(classes: String? = null, crossinline + block: DETAILS.() -> Unit = {}): T = DETAILS(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Instance definition */ @HtmlTagMarker -inline fun > C.dfn(classes : String? = null, crossinline block : DFN.() -> Unit = {}) : T = DFN(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.dfn(classes: String? = null, crossinline + block: DFN.() -> Unit = {}): T = DFN(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Dialog box or window */ @HtmlTagMarker -inline fun > C.dialog(classes : String? = null, crossinline block : DIALOG.() -> Unit = {}) : T = DIALOG(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.dialog(classes: String? = null, crossinline + block: DIALOG.() -> Unit = {}): T = DIALOG(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Generic language/style container */ @HtmlTagMarker -inline fun > C.div(classes : String? = null, crossinline block : DIV.() -> Unit = {}) : T = DIV(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.div(classes: String? = null, crossinline + block: DIV.() -> Unit = {}): T = DIV(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Definition list */ @HtmlTagMarker -inline fun > C.dl(classes : String? = null, crossinline block : DL.() -> Unit = {}) : T = DL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.dl(classes: String? = null, crossinline + block: DL.() -> Unit = {}): T = DL(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Definition term */ @HtmlTagMarker -inline fun > C.dt(classes : String? = null, crossinline block : DT.() -> Unit = {}) : T = DT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.dt(classes: String? = null, crossinline + block: DT.() -> Unit = {}): T = DT(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Emphasis */ @HtmlTagMarker -inline fun > C.em(classes : String? = null, crossinline block : EM.() -> Unit = {}) : T = EM(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.em(classes: String? = null, crossinline + block: EM.() -> Unit = {}): T = EM(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Plugin */ @HtmlTagMarker -inline fun > C.embed(classes : String? = null, crossinline block : EMBED.() -> Unit = {}) : T = EMBED(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.embed(classes: String? = null, crossinline + block: EMBED.() -> Unit = {}): T = EMBED(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Form control group */ @HtmlTagMarker -inline fun > C.fieldSet(classes : String? = null, crossinline block : FIELDSET.() -> Unit = {}) : T = FIELDSET(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.fieldSet(classes: String? = null, crossinline + block: FIELDSET.() -> Unit = {}): T = FIELDSET(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Caption for */ @HtmlTagMarker -inline fun > C.figcaption(classes : String? = null, crossinline block : FIGCAPTION.() -> Unit = {}) : T = FIGCAPTION(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.figcaption(classes: String? = null, crossinline + block: FIGCAPTION.() -> Unit = {}): T = FIGCAPTION(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Figure with optional caption */ @HtmlTagMarker -inline fun > C.figure(classes : String? = null, crossinline block : FIGURE.() -> Unit = {}) : T = FIGURE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.figure(classes: String? = null, crossinline + block: FIGURE.() -> Unit = {}): T = FIGURE(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Footer for a page or section */ @HtmlTagMarker -inline fun > C.footer(classes : String? = null, crossinline block : FOOTER.() -> Unit = {}) : T = FOOTER(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.footer(classes: String? = null, crossinline + block: FOOTER.() -> Unit = {}): T = FOOTER(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Interactive form */ @HtmlTagMarker -inline fun > C.form(action : String? = null, encType : FormEncType? = null, method : FormMethod? = null, classes : String? = null, crossinline block : FORM.() -> Unit = {}) : T = FORM(attributesMapOf("action", action,"enctype", encType?.enumEncode(),"method", method?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) +public inline fun > C.form( + action: String? = null, + encType: FormEncType? = null, + method: FormMethod? = null, + classes: String? = null, + crossinline block: FORM.() -> Unit = {}, +): T = FORM(attributesMapOf("action", action,"enctype", encType?.enumEncode(),"method", + method?.enumEncode(),"class", classes), this) + .visitAndFinalize(this, block) /** * Heading */ @HtmlTagMarker -inline fun > C.h1(classes : String? = null, crossinline block : H1.() -> Unit = {}) : T = H1(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.h1(classes: String? = null, crossinline + block: H1.() -> Unit = {}): T = H1(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Heading */ @HtmlTagMarker -inline fun > C.h2(classes : String? = null, crossinline block : H2.() -> Unit = {}) : T = H2(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.h2(classes: String? = null, crossinline + block: H2.() -> Unit = {}): T = H2(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Heading */ @HtmlTagMarker -inline fun > C.h3(classes : String? = null, crossinline block : H3.() -> Unit = {}) : T = H3(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.h3(classes: String? = null, crossinline + block: H3.() -> Unit = {}): T = H3(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Heading */ @HtmlTagMarker -inline fun > C.h4(classes : String? = null, crossinline block : H4.() -> Unit = {}) : T = H4(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.h4(classes: String? = null, crossinline + block: H4.() -> Unit = {}): T = H4(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Heading */ @HtmlTagMarker -inline fun > C.h5(classes : String? = null, crossinline block : H5.() -> Unit = {}) : T = H5(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.h5(classes: String? = null, crossinline + block: H5.() -> Unit = {}): T = H5(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Heading */ @HtmlTagMarker -inline fun > C.h6(classes : String? = null, crossinline block : H6.() -> Unit = {}) : T = H6(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.h6(classes: String? = null, crossinline + block: H6.() -> Unit = {}): T = H6(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) -@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") -@Suppress("DEPRECATION") /** * Document head */ @HtmlTagMarker -fun > C.head(content : String = "") : T = HEAD(emptyMap, this).visitAndFinalize(this, {+content}) +@Suppress("DEPRECATION") +@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") +public fun > C.head(content: String = ""): T = HEAD(emptyMap, this) + .visitAndFinalize(this, {+content}) + /** * Document head */ @HtmlTagMarker -inline fun > C.head(crossinline block : HEAD.() -> Unit = {}) : T = HEAD(emptyMap, this).visitAndFinalize(this, block) +public inline fun > C.head(crossinline block: HEAD.() -> Unit = {}): T = + HEAD(emptyMap, this) + .visitAndFinalize(this, block) /** * Introductory or navigational aids for a page or section */ @HtmlTagMarker -inline fun > C.header(classes : String? = null, crossinline block : HEADER.() -> Unit = {}) : T = HEADER(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.`header`(classes: String? = null, crossinline + block: HEADER.() -> Unit = {}): T = HEADER(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) @HtmlTagMarker -inline fun > C.hGroup(classes : String? = null, crossinline block : HGROUP.() -> Unit = {}) : T = HGROUP(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.hGroup(classes: String? = null, crossinline + block: HGROUP.() -> Unit = {}): T = HGROUP(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Horizontal rule */ @HtmlTagMarker -inline fun > C.hr(classes : String? = null, crossinline block : HR.() -> Unit = {}) : T = HR(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.hr(classes: String? = null, crossinline + block: HR.() -> Unit = {}): T = HR(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) -@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") -@Suppress("DEPRECATION") /** * Document root element */ @HtmlTagMarker -fun > C.html(content : String = "", namespace : String? = null) : T = HTML(emptyMap, this, namespace).visitAndFinalize(this, {+content}) +@Suppress("DEPRECATION") +@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") +public fun > C.html(content: String = "", namespace: String? = null): T = + HTML(emptyMap, this, namespace) + .visitAndFinalize(this, {+content}) + /** * Document root element */ @HtmlTagMarker -inline fun > C.html(namespace : String? = null, crossinline block : HTML.() -> Unit = {}) : T = HTML(emptyMap, this, namespace).visitAndFinalize(this, block) +public inline fun > C.html(namespace: String? = null, crossinline + block: HTML.() -> Unit = {}): T = HTML(emptyMap, this, namespace) + .visitAndFinalize(this, block) /** * Italic text style */ @HtmlTagMarker -inline fun > C.i(classes : String? = null, crossinline block : I.() -> Unit = {}) : T = I(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.i(classes: String? = null, crossinline + block: I.() -> Unit = {}): T = I(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Inline subwindow */ @HtmlTagMarker -fun > C.iframe(sandbox : IframeSandbox? = null, classes : String? = null, content : String = "") : T = IFRAME(attributesMapOf("sandbox", sandbox?.enumEncode(),"class", classes), this).visitAndFinalize(this, {+content}) +public fun > C.iframe( + sandbox: IframeSandbox? = null, + classes: String? = null, + content: String = "", +): T = IFRAME(attributesMapOf("sandbox", sandbox?.enumEncode(),"class", classes), this) + .visitAndFinalize(this, {+content}) + /** * Inline subwindow */ @HtmlTagMarker -inline fun > C.iframe(sandbox : IframeSandbox? = null, classes : String? = null, crossinline block : IFRAME.() -> Unit = {}) : T = IFRAME(attributesMapOf("sandbox", sandbox?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) +public inline fun > C.iframe( + sandbox: IframeSandbox? = null, + classes: String? = null, + crossinline block: IFRAME.() -> Unit = {}, +): T = IFRAME(attributesMapOf("sandbox", sandbox?.enumEncode(),"class", classes), this) + .visitAndFinalize(this, block) /** * Embedded image */ @HtmlTagMarker -inline fun > C.img(alt : String? = null, src : String? = null, loading : ImgLoading? = null, classes : String? = null, crossinline block : IMG.() -> Unit = {}) : T = IMG(attributesMapOf("alt", alt,"src", src,"loading", loading?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) +public inline fun > C.img( + alt: String? = null, + src: String? = null, + loading: ImgLoading? = null, + classes: String? = null, + crossinline block: IMG.() -> Unit = {}, +): T = IMG(attributesMapOf("alt", alt,"src", src,"loading", loading?.enumEncode(),"class", classes), + this) + .visitAndFinalize(this, block) /** * Form control */ @HtmlTagMarker -inline fun > C.input(type : InputType? = null, formEncType : InputFormEncType? = null, formMethod : InputFormMethod? = null, name : String? = null, classes : String? = null, crossinline block : INPUT.() -> Unit = {}) : T = INPUT(attributesMapOf("type", type?.enumEncode(),"formenctype", formEncType?.enumEncode(),"formmethod", formMethod?.enumEncode(),"name", name,"class", classes), this).visitAndFinalize(this, block) +public inline fun > C.input( + type: InputType? = null, + formEncType: InputFormEncType? = null, + formMethod: InputFormMethod? = null, + name: String? = null, + classes: String? = null, + crossinline block: INPUT.() -> Unit = {}, +): T = INPUT(attributesMapOf("type", type?.enumEncode(),"formenctype", + formEncType?.enumEncode(),"formmethod", formMethod?.enumEncode(),"name", name,"class", classes), + this) + .visitAndFinalize(this, block) /** * Inserted text */ @HtmlTagMarker -inline fun > C.ins(classes : String? = null, crossinline block : INS.() -> Unit = {}) : T = INS(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.ins(classes: String? = null, crossinline + block: INS.() -> Unit = {}): T = INS(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Text to be entered by the user */ @HtmlTagMarker -inline fun > C.kbd(classes : String? = null, crossinline block : KBD.() -> Unit = {}) : T = KBD(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.kbd(classes: String? = null, crossinline + block: KBD.() -> Unit = {}): T = KBD(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Cryptographic key-pair generator form control */ @HtmlTagMarker -inline fun > C.keyGen(keyType : KeyGenKeyType? = null, classes : String? = null, crossinline block : KEYGEN.() -> Unit = {}) : T = KEYGEN(attributesMapOf("keytype", keyType?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) +public inline fun > C.keyGen( + keyType: KeyGenKeyType? = null, + classes: String? = null, + crossinline block: KEYGEN.() -> Unit = {}, +): T = KEYGEN(attributesMapOf("keytype", keyType?.enumEncode(),"class", classes), this) + .visitAndFinalize(this, block) /** * Form field label text */ @HtmlTagMarker -inline fun > C.label(classes : String? = null, crossinline block : LABEL.() -> Unit = {}) : T = LABEL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.label(classes: String? = null, crossinline + block: LABEL.() -> Unit = {}): T = LABEL(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Fieldset legend */ @HtmlTagMarker -inline fun > C.legend(classes : String? = null, crossinline block : LEGEND.() -> Unit = {}) : T = LEGEND(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.legend(classes: String? = null, crossinline + block: LEGEND.() -> Unit = {}): T = LEGEND(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * List item */ @HtmlTagMarker -inline fun > C.li(classes : String? = null, crossinline block : LI.() -> Unit = {}) : T = LI(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.li(classes: String? = null, crossinline + block: LI.() -> Unit = {}): T = LI(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * A media-independent link */ @HtmlTagMarker -inline fun > C.link(href : String? = null, rel : String? = null, type : String? = null, crossinline block : LINK.() -> Unit = {}) : T = LINK(attributesMapOf("href", href,"rel", rel,"type", type), this).visitAndFinalize(this, block) +public inline fun > C.link( + href: String? = null, + rel: String? = null, + type: String? = null, + crossinline block: LINK.() -> Unit = {}, +): T = LINK(attributesMapOf("href", href,"rel", rel,"type", type), this) + .visitAndFinalize(this, block) /** * Container for the dominant contents of another element */ @HtmlTagMarker -inline fun > C.main(classes : String? = null, crossinline block : MAIN.() -> Unit = {}) : T = MAIN(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.main(classes: String? = null, crossinline + block: MAIN.() -> Unit = {}): T = MAIN(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Client-side image map */ @HtmlTagMarker -inline fun > C.map(name : String? = null, classes : String? = null, crossinline block : MAP.() -> Unit = {}) : T = MAP(attributesMapOf("name", name,"class", classes), this).visitAndFinalize(this, block) +public inline fun > C.map( + name: String? = null, + classes: String? = null, + crossinline block: MAP.() -> Unit = {}, +): T = MAP(attributesMapOf("name", name,"class", classes), this) + .visitAndFinalize(this, block) /** * Highlight */ @HtmlTagMarker -inline fun > C.mark(classes : String? = null, crossinline block : MARK.() -> Unit = {}) : T = MARK(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.mark(classes: String? = null, crossinline + block: MARK.() -> Unit = {}): T = MARK(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) @HtmlTagMarker -inline fun > C.math(classes : String? = null, crossinline block : MATH.() -> Unit = {}) : T = MATH(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.math(classes: String? = null, crossinline + block: MATH.() -> Unit = {}): T = MATH(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) @HtmlTagMarker -fun > C.mathml(classes : String? = null, content : String = "") : T = MATHML(attributesMapOf("class", classes), this).visitAndFinalize(this, {+content}) +public fun > C.mathml(classes: String? = null, content: String = ""): T = + MATHML(attributesMapOf("class", classes), this) + .visitAndFinalize(this, {+content}) + @HtmlTagMarker -inline fun > C.mathml(classes : String? = null, crossinline block : MATHML.() -> Unit = {}) : T = MATHML(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.mathml(classes: String? = null, crossinline + block: MATHML.() -> Unit = {}): T = MATHML(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Generic metainformation */ @HtmlTagMarker -inline fun > C.meta(name : String? = null, content : String? = null, charset : String? = null, crossinline block : META.() -> Unit = {}) : T = META(attributesMapOf("name", name,"content", content,"charset", charset), this).visitAndFinalize(this, block) +public inline fun > C.meta( + name: String? = null, + content: String? = null, + charset: String? = null, + crossinline block: META.() -> Unit = {}, +): T = META(attributesMapOf("name", name,"content", content,"charset", charset), this) + .visitAndFinalize(this, block) /** * Gauge */ @HtmlTagMarker -inline fun > C.meter(classes : String? = null, crossinline block : METER.() -> Unit = {}) : T = METER(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.meter(classes: String? = null, crossinline + block: METER.() -> Unit = {}): T = METER(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Section with navigational links */ @HtmlTagMarker -inline fun > C.nav(classes : String? = null, crossinline block : NAV.() -> Unit = {}) : T = NAV(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.nav(classes: String? = null, crossinline + block: NAV.() -> Unit = {}): T = NAV(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Generic metainformation */ @HtmlTagMarker -inline fun > C.noScript(classes : String? = null, crossinline block : NOSCRIPT.() -> Unit = {}) : T = NOSCRIPT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.noScript(classes: String? = null, crossinline + block: NOSCRIPT.() -> Unit = {}): T = NOSCRIPT(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Generic embedded object */ @HtmlTagMarker -inline fun > C.htmlObject(classes : String? = null, crossinline block : OBJECT.() -> Unit = {}) : T = OBJECT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.htmlObject(classes: String? = null, crossinline + block: OBJECT.() -> Unit = {}): T = OBJECT(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Ordered list */ @HtmlTagMarker -inline fun > C.ol(classes : String? = null, crossinline block : OL.() -> Unit = {}) : T = OL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.ol(classes: String? = null, crossinline + block: OL.() -> Unit = {}): T = OL(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Option group */ @HtmlTagMarker -inline fun > C.optGroup(label : String? = null, classes : String? = null, crossinline block : OPTGROUP.() -> Unit = {}) : T = OPTGROUP(attributesMapOf("label", label,"class", classes), this).visitAndFinalize(this, block) +public inline fun > C.optGroup( + label: String? = null, + classes: String? = null, + crossinline block: OPTGROUP.() -> Unit = {}, +): T = OPTGROUP(attributesMapOf("label", label,"class", classes), this) + .visitAndFinalize(this, block) /** * Selectable choice */ @HtmlTagMarker -fun > C.option(classes : String? = null, content : String = "") : T = OPTION(attributesMapOf("class", classes), this).visitAndFinalize(this, {+content}) +public fun > C.option(classes: String? = null, content: String = ""): T = + OPTION(attributesMapOf("class", classes), this) + .visitAndFinalize(this, {+content}) + /** * Selectable choice */ @HtmlTagMarker -inline fun > C.option(classes : String? = null, crossinline block : OPTION.() -> Unit = {}) : T = OPTION(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.option(classes: String? = null, crossinline + block: OPTION.() -> Unit = {}): T = OPTION(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Calculated output value */ @HtmlTagMarker -inline fun > C.output(classes : String? = null, crossinline block : OUTPUT.() -> Unit = {}) : T = OUTPUT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.output(classes: String? = null, crossinline + block: OUTPUT.() -> Unit = {}): T = OUTPUT(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Paragraph */ @HtmlTagMarker -inline fun > C.p(classes : String? = null, crossinline block : P.() -> Unit = {}) : T = P(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.p(classes: String? = null, crossinline + block: P.() -> Unit = {}): T = P(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Named property value */ @HtmlTagMarker -inline fun > C.param(name : String? = null, value : String? = null, crossinline block : PARAM.() -> Unit = {}) : T = PARAM(attributesMapOf("name", name,"value", value), this).visitAndFinalize(this, block) +public inline fun > C.`param`( + name: String? = null, + `value`: String? = null, + crossinline block: PARAM.() -> Unit = {}, +): T = PARAM(attributesMapOf("name", name,"value", value), this) + .visitAndFinalize(this, block) /** * Pictures container */ @HtmlTagMarker -inline fun > C.picture(crossinline block : PICTURE.() -> Unit = {}) : T = PICTURE(emptyMap, this).visitAndFinalize(this, block) +public inline fun > C.picture(crossinline block: PICTURE.() -> Unit = {}): T = + PICTURE(emptyMap, this) + .visitAndFinalize(this, block) /** * Preformatted text */ @HtmlTagMarker -inline fun > C.pre(classes : String? = null, crossinline block : PRE.() -> Unit = {}) : T = PRE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.pre(classes: String? = null, crossinline + block: PRE.() -> Unit = {}): T = PRE(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Progress bar */ @HtmlTagMarker -inline fun > C.progress(classes : String? = null, crossinline block : PROGRESS.() -> Unit = {}) : T = PROGRESS(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.progress(classes: String? = null, crossinline + block: PROGRESS.() -> Unit = {}): T = PROGRESS(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Short inline quotation */ @HtmlTagMarker -inline fun > C.q(classes : String? = null, crossinline block : Q.() -> Unit = {}) : T = Q(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.q(classes: String? = null, crossinline + block: Q.() -> Unit = {}): T = Q(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Parenthesis for ruby annotation text */ @HtmlTagMarker -inline fun > C.rp(classes : String? = null, crossinline block : RP.() -> Unit = {}) : T = RP(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.rp(classes: String? = null, crossinline + block: RP.() -> Unit = {}): T = RP(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Ruby annotation text */ @HtmlTagMarker -inline fun > C.rt(classes : String? = null, crossinline block : RT.() -> Unit = {}) : T = RT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.rt(classes: String? = null, crossinline + block: RT.() -> Unit = {}): T = RT(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Ruby annotation(s) */ @HtmlTagMarker -inline fun > C.ruby(classes : String? = null, crossinline block : RUBY.() -> Unit = {}) : T = RUBY(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.ruby(classes: String? = null, crossinline + block: RUBY.() -> Unit = {}): T = RUBY(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Strike-through text style */ @HtmlTagMarker -inline fun > C.samp(classes : String? = null, crossinline block : SAMP.() -> Unit = {}) : T = SAMP(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.s(classes: String? = null, crossinline + block: S.() -> Unit = {}): T = S(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) + +/** + * Computer output text style + */ +@HtmlTagMarker +public inline fun > C.samp(classes: String? = null, crossinline + block: SAMP.() -> Unit = {}): T = SAMP(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) -@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") -@Suppress("DEPRECATION") /** * Script statements */ @HtmlTagMarker -fun > C.script(type : String? = null, src : String? = null, content : String = "") : T = SCRIPT(attributesMapOf("type", type,"src", src), this).visitAndFinalize(this, {+content}) +@Suppress("DEPRECATION") +@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") +public fun > C.script( + type: String? = null, + src: String? = null, + crossorigin: ScriptCrossorigin? = null, + content: String = "", +): T = SCRIPT(attributesMapOf("type", type,"src", src,"crossorigin", crossorigin?.enumEncode()), + this) + .visitAndFinalize(this, {+content}) + /** * Script statements */ @HtmlTagMarker -inline fun > C.script(type : String? = null, src : String? = null, crossinline block : SCRIPT.() -> Unit = {}) : T = SCRIPT(attributesMapOf("type", type,"src", src), this).visitAndFinalize(this, block) +public inline fun > C.script( + type: String? = null, + src: String? = null, + crossorigin: ScriptCrossorigin? = null, + crossinline block: SCRIPT.() -> Unit = {}, +): T = SCRIPT(attributesMapOf("type", type,"src", src,"crossorigin", crossorigin?.enumEncode()), + this) + .visitAndFinalize(this, block) /** * Generic document or application section */ @HtmlTagMarker -inline fun > C.section(classes : String? = null, crossinline block : SECTION.() -> Unit = {}) : T = SECTION(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.section(classes: String? = null, crossinline + block: SECTION.() -> Unit = {}): T = SECTION(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Option selector */ @HtmlTagMarker -inline fun > C.select(classes : String? = null, crossinline block : SELECT.() -> Unit = {}) : T = SELECT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.select(classes: String? = null, crossinline + block: SELECT.() -> Unit = {}): T = SELECT(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Small text style */ @HtmlTagMarker -inline fun > C.small(classes : String? = null, crossinline block : SMALL.() -> Unit = {}) : T = SMALL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.small(classes: String? = null, crossinline + block: SMALL.() -> Unit = {}): T = SMALL(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Media source for */ @HtmlTagMarker -inline fun > C.source(classes : String? = null, crossinline block : SOURCE.() -> Unit = {}) : T = SOURCE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.source(classes: String? = null, crossinline + block: SOURCE.() -> Unit = {}): T = SOURCE(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Generic language/style container */ @HtmlTagMarker -inline fun > C.span(classes : String? = null, crossinline block : SPAN.() -> Unit = {}) : T = SPAN(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.span(classes: String? = null, crossinline + block: SPAN.() -> Unit = {}): T = SPAN(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Strong emphasis */ @HtmlTagMarker -inline fun > C.strong(classes : String? = null, crossinline block : STRONG.() -> Unit = {}) : T = STRONG(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.strong(classes: String? = null, crossinline + block: STRONG.() -> Unit = {}): T = STRONG(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) -@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") -@Suppress("DEPRECATION") /** * Style info */ @HtmlTagMarker -fun > C.style(type : String? = null, content : String = "") : T = STYLE(attributesMapOf("type", type), this).visitAndFinalize(this, {+content}) +@Suppress("DEPRECATION") +@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") +public fun > C.style(type: String? = null, content: String = ""): T = + STYLE(attributesMapOf("type", type), this) + .visitAndFinalize(this, {+content}) + /** * Style info */ @HtmlTagMarker -inline fun > C.style(type : String? = null, crossinline block : STYLE.() -> Unit = {}) : T = STYLE(attributesMapOf("type", type), this).visitAndFinalize(this, block) +public inline fun > C.style(type: String? = null, crossinline + block: STYLE.() -> Unit = {}): T = STYLE(attributesMapOf("type", type), this) + .visitAndFinalize(this, block) /** * Subscript */ @HtmlTagMarker -inline fun > C.sub(classes : String? = null, crossinline block : SUB.() -> Unit = {}) : T = SUB(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.sub(classes: String? = null, crossinline + block: SUB.() -> Unit = {}): T = SUB(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Caption for */ @HtmlTagMarker -inline fun > C.summary(classes : String? = null, crossinline block : SUMMARY.() -> Unit = {}) : T = SUMMARY(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.summary(classes: String? = null, crossinline + block: SUMMARY.() -> Unit = {}): T = SUMMARY(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Superscript */ @HtmlTagMarker -inline fun > C.sup(classes : String? = null, crossinline block : SUP.() -> Unit = {}) : T = SUP(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.sup(classes: String? = null, crossinline + block: SUP.() -> Unit = {}): T = SUP(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) @HtmlTagMarker -fun > C.svg(classes : String? = null, content : String = "") : T = SVG(attributesMapOf("class", classes), this).visitAndFinalize(this, {+content}) +public fun > C.svg(classes: String? = null, content: String = ""): T = + SVG(attributesMapOf("class", classes), this) + .visitAndFinalize(this, {+content}) + @HtmlTagMarker -inline fun > C.svg(classes : String? = null, crossinline block : SVG.() -> Unit = {}) : T = SVG(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.svg(classes: String? = null, crossinline + block: SVG.() -> Unit = {}): T = SVG(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** - * + * */ @HtmlTagMarker -inline fun > C.table(classes : String? = null, crossinline block : TABLE.() -> Unit = {}) : T = TABLE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.table(classes: String? = null, crossinline + block: TABLE.() -> Unit = {}): T = TABLE(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Table body */ @HtmlTagMarker -inline fun > C.tbody(classes : String? = null, crossinline block : TBODY.() -> Unit = {}) : T = TBODY(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.tbody(classes: String? = null, crossinline + block: TBODY.() -> Unit = {}): T = TBODY(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Table data cell */ @HtmlTagMarker -inline fun > C.td(classes : String? = null, crossinline block : TD.() -> Unit = {}) : T = TD(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.td(classes: String? = null, crossinline + block: TD.() -> Unit = {}): T = TD(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Multi-line text field */ @HtmlTagMarker -fun > C.textArea(rows : String? = null, cols : String? = null, wrap : TextAreaWrap? = null, classes : String? = null, content : String = "") : T = TEXTAREA(attributesMapOf("rows", rows,"cols", cols,"wrap", wrap?.enumEncode(),"class", classes), this).visitAndFinalize(this, {+content}) +public fun > C.textArea( + rows: String? = null, + cols: String? = null, + wrap: TextAreaWrap? = null, + classes: String? = null, + content: String = "", +): T = TEXTAREA(attributesMapOf("rows", rows,"cols", cols,"wrap", wrap?.enumEncode(),"class", + classes), this) + .visitAndFinalize(this, {+content}) + /** * Multi-line text field */ @HtmlTagMarker -inline fun > C.textArea(rows : String? = null, cols : String? = null, wrap : TextAreaWrap? = null, classes : String? = null, crossinline block : TEXTAREA.() -> Unit = {}) : T = TEXTAREA(attributesMapOf("rows", rows,"cols", cols,"wrap", wrap?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) +public inline fun > C.textArea( + rows: String? = null, + cols: String? = null, + wrap: TextAreaWrap? = null, + classes: String? = null, + crossinline block: TEXTAREA.() -> Unit = {}, +): T = TEXTAREA(attributesMapOf("rows", rows,"cols", cols,"wrap", wrap?.enumEncode(),"class", + classes), this) + .visitAndFinalize(this, block) /** * Table footer */ @HtmlTagMarker -inline fun > C.tfoot(classes : String? = null, crossinline block : TFOOT.() -> Unit = {}) : T = TFOOT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.tfoot(classes: String? = null, crossinline + block: TFOOT.() -> Unit = {}): T = TFOOT(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Table header cell */ @HtmlTagMarker -inline fun > C.th(scope : ThScope? = null, classes : String? = null, crossinline block : TH.() -> Unit = {}) : T = TH(attributesMapOf("scope", scope?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) +public inline fun > C.th( + scope: ThScope? = null, + classes: String? = null, + crossinline block: TH.() -> Unit = {}, +): T = TH(attributesMapOf("scope", scope?.enumEncode(),"class", classes), this) + .visitAndFinalize(this, block) /** * Table header */ @HtmlTagMarker -inline fun > C.thead(classes : String? = null, crossinline block : THEAD.() -> Unit = {}) : T = THEAD(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.thead(classes: String? = null, crossinline + block: THEAD.() -> Unit = {}): T = THEAD(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Machine-readable equivalent of date- or time-related data */ @HtmlTagMarker -inline fun > C.time(classes : String? = null, crossinline block : TIME.() -> Unit = {}) : T = TIME(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.time(classes: String? = null, crossinline + block: TIME.() -> Unit = {}): T = TIME(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Document title */ @HtmlTagMarker -fun > C.title(content : String = "") : T = TITLE(emptyMap, this).visitAndFinalize(this, {+content}) +public fun > C.title(content: String = ""): T = TITLE(emptyMap, this) + .visitAndFinalize(this, {+content}) + /** * Document title */ @HtmlTagMarker -inline fun > C.title(crossinline block : TITLE.() -> Unit = {}) : T = TITLE(emptyMap, this).visitAndFinalize(this, block) +public inline fun > C.title(crossinline block: TITLE.() -> Unit = {}): T = + TITLE(emptyMap, this) + .visitAndFinalize(this, block) /** * Table row */ @HtmlTagMarker -inline fun > C.tr(classes : String? = null, crossinline block : TR.() -> Unit = {}) : T = TR(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.tr(classes: String? = null, crossinline + block: TR.() -> Unit = {}): T = TR(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) + +/** + * Underlined text style + */ +@HtmlTagMarker +public inline fun > C.u(classes: String? = null, crossinline + block: U.() -> Unit = {}): T = U(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Unordered list */ @HtmlTagMarker -inline fun > C.ul(classes : String? = null, crossinline block : UL.() -> Unit = {}) : T = UL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.ul(classes: String? = null, crossinline + block: UL.() -> Unit = {}): T = UL(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Unordered list */ @HtmlTagMarker -inline fun > C.htmlVar(classes : String? = null, crossinline block : VAR.() -> Unit = {}) : T = VAR(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun > C.htmlVar(classes: String? = null, crossinline + block: VAR.() -> Unit = {}): T = VAR(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Video player */ @HtmlTagMarker -inline fun > C.video(classes : String? = null, crossinline block : VIDEO.() -> Unit = {}) : T = VIDEO(attributesMapOf("class", classes), this).visitAndFinalize(this, block) - +public inline fun > C.video(classes: String? = null, crossinline + block: VIDEO.() -> Unit = {}): T = VIDEO(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) diff --git a/src/commonMain/kotlin/generated/gen-enums.kt b/src/commonMain/kotlin/generated/gen-enums.kt index 70fa095a..6c666c19 100644 --- a/src/commonMain/kotlin/generated/gen-enums.kt +++ b/src/commonMain/kotlin/generated/gen-enums.kt @@ -1,5 +1,3 @@ -@file:Suppress("EnumEntryName") - package kotlinx.html import kotlinx.html.* diff --git a/src/jsMain/kotlin/generated/gen-consumer-tags-js.kt b/src/jsMain/kotlin/generated/gen-consumer-tags-js.kt index 5f31b252..c1f10044 100644 --- a/src/jsMain/kotlin/generated/gen-consumer-tags-js.kt +++ b/src/jsMain/kotlin/generated/gen-consumer-tags-js.kt @@ -1,708 +1,1264 @@ +/******************************************************************************* + DO NOT EDIT + This file was generated by module generate +*******************************************************************************/ package kotlinx.html.js import kotlinx.html.* -import kotlinx.html.impl.* import kotlinx.html.attributes.* -import org.w3c.dom.* -/******************************************************************************* - DO NOT EDIT - This file was generated by module generate -*******************************************************************************/ +import kotlin.Deprecated +import kotlin.String +import kotlin.Suppress +import kotlin.Unit +import kotlinx.html.A +import kotlinx.html.ABBR +import kotlinx.html.ADDRESS +import kotlinx.html.AREA +import kotlinx.html.ARTICLE +import kotlinx.html.ASIDE +import kotlinx.html.AUDIO +import kotlinx.html.AreaShape +import kotlinx.html.B +import kotlinx.html.BASE +import kotlinx.html.BDI +import kotlinx.html.BDO +import kotlinx.html.BLOCKQUOTE +import kotlinx.html.BODY +import kotlinx.html.BR +import kotlinx.html.BUTTON +import kotlinx.html.ButtonFormEncType +import kotlinx.html.ButtonFormMethod +import kotlinx.html.ButtonType +import kotlinx.html.CANVAS +import kotlinx.html.CAPTION +import kotlinx.html.CITE +import kotlinx.html.CODE +import kotlinx.html.COL +import kotlinx.html.COLGROUP +import kotlinx.html.COMMAND +import kotlinx.html.CommandType +import kotlinx.html.DATALIST +import kotlinx.html.DD +import kotlinx.html.DEL +import kotlinx.html.DETAILS +import kotlinx.html.DFN +import kotlinx.html.DIALOG +import kotlinx.html.DIV +import kotlinx.html.DL +import kotlinx.html.DT +import kotlinx.html.EM +import kotlinx.html.EMBED +import kotlinx.html.FIELDSET +import kotlinx.html.FIGCAPTION +import kotlinx.html.FIGURE +import kotlinx.html.FOOTER +import kotlinx.html.FORM +import kotlinx.html.FormEncType +import kotlinx.html.FormMethod +import kotlinx.html.H1 +import kotlinx.html.H2 +import kotlinx.html.H3 +import kotlinx.html.H4 +import kotlinx.html.H5 +import kotlinx.html.H6 +import kotlinx.html.HEAD +import kotlinx.html.HEADER +import kotlinx.html.HGROUP +import kotlinx.html.HR +import kotlinx.html.HTML +import kotlinx.html.HtmlTagMarker +import kotlinx.html.I +import kotlinx.html.IFRAME +import kotlinx.html.IMG +import kotlinx.html.INPUT +import kotlinx.html.INS +import kotlinx.html.IframeSandbox +import kotlinx.html.ImgLoading +import kotlinx.html.InputFormEncType +import kotlinx.html.InputFormMethod +import kotlinx.html.InputType +import kotlinx.html.KBD +import kotlinx.html.KEYGEN +import kotlinx.html.KeyGenKeyType +import kotlinx.html.LABEL +import kotlinx.html.LEGEND +import kotlinx.html.LI +import kotlinx.html.LINK +import kotlinx.html.MAIN +import kotlinx.html.MAP +import kotlinx.html.MARK +import kotlinx.html.MATH +import kotlinx.html.MATHML +import kotlinx.html.META +import kotlinx.html.METER +import kotlinx.html.NAV +import kotlinx.html.NOSCRIPT +import kotlinx.html.OBJECT +import kotlinx.html.OL +import kotlinx.html.OPTGROUP +import kotlinx.html.OPTION +import kotlinx.html.OUTPUT +import kotlinx.html.P +import kotlinx.html.PARAM +import kotlinx.html.PICTURE +import kotlinx.html.PRE +import kotlinx.html.PROGRESS +import kotlinx.html.Q +import kotlinx.html.RP +import kotlinx.html.RT +import kotlinx.html.RUBY +import kotlinx.html.S +import kotlinx.html.SAMP +import kotlinx.html.SCRIPT +import kotlinx.html.SECTION +import kotlinx.html.SELECT +import kotlinx.html.SMALL +import kotlinx.html.SOURCE +import kotlinx.html.SPAN +import kotlinx.html.STRONG +import kotlinx.html.STYLE +import kotlinx.html.SUB +import kotlinx.html.SUMMARY +import kotlinx.html.SUP +import kotlinx.html.SVG +import kotlinx.html.ScriptCrossorigin +import kotlinx.html.TABLE +import kotlinx.html.TBODY +import kotlinx.html.TD +import kotlinx.html.TEXTAREA +import kotlinx.html.TFOOT +import kotlinx.html.TH +import kotlinx.html.THEAD +import kotlinx.html.TIME +import kotlinx.html.TITLE +import kotlinx.html.TR +import kotlinx.html.TagConsumer +import kotlinx.html.TextAreaWrap +import kotlinx.html.ThScope +import kotlinx.html.U +import kotlinx.html.UL +import kotlinx.html.VAR +import kotlinx.html.VIDEO +import org.w3c.dom.HTMLAnchorElement +import org.w3c.dom.HTMLAreaElement +import org.w3c.dom.HTMLAudioElement +import org.w3c.dom.HTMLBRElement +import org.w3c.dom.HTMLBaseElement +import org.w3c.dom.HTMLBodyElement +import org.w3c.dom.HTMLButtonElement +import org.w3c.dom.HTMLCanvasElement +import org.w3c.dom.HTMLDataListElement +import org.w3c.dom.HTMLDetailsElement +import org.w3c.dom.HTMLDialogElement +import org.w3c.dom.HTMLDivElement +import org.w3c.dom.HTMLElement +import org.w3c.dom.HTMLEmbedElement +import org.w3c.dom.HTMLFieldSetElement +import org.w3c.dom.HTMLFormElement +import org.w3c.dom.HTMLHRElement +import org.w3c.dom.HTMLHeadElement +import org.w3c.dom.HTMLHeadingElement +import org.w3c.dom.HTMLHtmlElement +import org.w3c.dom.HTMLImageElement +import org.w3c.dom.HTMLInputElement +import org.w3c.dom.HTMLLIElement +import org.w3c.dom.HTMLLabelElement +import org.w3c.dom.HTMLLegendElement +import org.w3c.dom.HTMLLinkElement +import org.w3c.dom.HTMLMapElement +import org.w3c.dom.HTMLMetaElement +import org.w3c.dom.HTMLMeterElement +import org.w3c.dom.HTMLOptGroupElement +import org.w3c.dom.HTMLOptionElement +import org.w3c.dom.HTMLOutputElement +import org.w3c.dom.HTMLParagraphElement +import org.w3c.dom.HTMLParamElement +import org.w3c.dom.HTMLPictureElement +import org.w3c.dom.HTMLPreElement +import org.w3c.dom.HTMLProgressElement +import org.w3c.dom.HTMLScriptElement +import org.w3c.dom.HTMLSelectElement +import org.w3c.dom.HTMLSourceElement +import org.w3c.dom.HTMLSpanElement +import org.w3c.dom.HTMLStyleElement +import org.w3c.dom.HTMLTableCellElement +import org.w3c.dom.HTMLTableColElement +import org.w3c.dom.HTMLTableElement +import org.w3c.dom.HTMLTableRowElement +import org.w3c.dom.HTMLTableSectionElement +import org.w3c.dom.HTMLTextAreaElement +import org.w3c.dom.HTMLTimeElement +import org.w3c.dom.HTMLTitleElement +import org.w3c.dom.HTMLVideoElement /** * Anchor */ @HtmlTagMarker -public inline fun TagConsumer.a(href : String? = null, target : String? = null, classes : String? = null, crossinline block : A.() -> Unit = {}) : HTMLAnchorElement = A(attributesMapOf("href", href,"target", target,"class", classes), this).visitAndFinalize(this, block) as HTMLAnchorElement +public inline fun TagConsumer.a( + href: String? = null, + target: String? = null, + classes: String? = null, + crossinline block: A.() -> Unit = {}, +): HTMLAnchorElement = A(attributesMapOf("href", href,"target", target,"class", classes), this) + .visitAndFinalize(this, block) as HTMLAnchorElement /** * Abbreviated form (e.g., WWW, HTTP,etc.) */ @HtmlTagMarker -public inline fun TagConsumer.abbr(classes : String? = null, crossinline block : ABBR.() -> Unit = {}) : HTMLElement = ABBR(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.abbr(classes: String? = null, crossinline + block: ABBR.() -> Unit = {}): HTMLElement = ABBR(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Information on author */ @HtmlTagMarker -public inline fun TagConsumer.address(classes : String? = null, crossinline block : ADDRESS.() -> Unit = {}) : HTMLElement = ADDRESS(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.address(classes: String? = null, crossinline + block: ADDRESS.() -> Unit = {}): HTMLElement = ADDRESS(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Client-side image map area */ @HtmlTagMarker -public inline fun TagConsumer.area(shape : AreaShape? = null, alt : String? = null, classes : String? = null, crossinline block : AREA.() -> Unit = {}) : HTMLAreaElement = AREA(attributesMapOf("Shape", shape?.enumEncode(),"alt", alt,"class", classes), this).visitAndFinalize(this, block) as HTMLAreaElement +public inline fun TagConsumer.area( + shape: AreaShape? = null, + alt: String? = null, + classes: String? = null, + crossinline block: AREA.() -> Unit = {}, +): HTMLAreaElement = AREA(attributesMapOf("Shape", shape?.enumEncode(),"alt", alt,"class", classes), + this) + .visitAndFinalize(this, block) as HTMLAreaElement /** * Self-contained syndicatable or reusable composition */ @HtmlTagMarker -public inline fun TagConsumer.article(classes : String? = null, crossinline block : ARTICLE.() -> Unit = {}) : HTMLElement = ARTICLE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.article(classes: String? = null, crossinline + block: ARTICLE.() -> Unit = {}): HTMLElement = ARTICLE(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Sidebar for tangentially related content */ @HtmlTagMarker -public inline fun TagConsumer.aside(classes : String? = null, crossinline block : ASIDE.() -> Unit = {}) : HTMLElement = ASIDE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.aside(classes: String? = null, crossinline + block: ASIDE.() -> Unit = {}): HTMLElement = ASIDE(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Audio player */ @HtmlTagMarker -public inline fun TagConsumer.audio(classes : String? = null, crossinline block : AUDIO.() -> Unit = {}) : HTMLAudioElement = AUDIO(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLAudioElement +public inline fun TagConsumer.audio(classes: String? = null, crossinline + block: AUDIO.() -> Unit = {}): HTMLAudioElement = AUDIO(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) as HTMLAudioElement /** * Bold text style */ @HtmlTagMarker -public inline fun TagConsumer.b(classes : String? = null, crossinline block : B.() -> Unit = {}) : HTMLElement = B(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.b(classes: String? = null, crossinline + block: B.() -> Unit = {}): HTMLElement = B(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Document base URI */ @HtmlTagMarker -public inline fun TagConsumer.base(classes : String? = null, crossinline block : BASE.() -> Unit = {}) : HTMLBaseElement = BASE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLBaseElement +public inline fun TagConsumer.base(classes: String? = null, crossinline + block: BASE.() -> Unit = {}): HTMLBaseElement = BASE(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) as HTMLBaseElement /** * Text directionality isolation */ @HtmlTagMarker -public inline fun TagConsumer.bdi(classes : String? = null, crossinline block : BDI.() -> Unit = {}) : HTMLElement = BDI(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.bdi(classes: String? = null, crossinline + block: BDI.() -> Unit = {}): HTMLElement = BDI(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * I18N BiDi over-ride */ @HtmlTagMarker -public inline fun TagConsumer.bdo(classes : String? = null, crossinline block : BDO.() -> Unit = {}) : HTMLElement = BDO(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.bdo(classes: String? = null, crossinline + block: BDO.() -> Unit = {}): HTMLElement = BDO(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Long quotation */ @HtmlTagMarker -public inline fun TagConsumer.blockQuote(classes : String? = null, crossinline block : BLOCKQUOTE.() -> Unit = {}) : HTMLElement = BLOCKQUOTE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.blockQuote(classes: String? = null, crossinline + block: BLOCKQUOTE.() -> Unit = {}): HTMLElement = BLOCKQUOTE(attributesMapOf("class", classes), + this) + .visitAndFinalize(this, block) /** * Document body */ @HtmlTagMarker -public inline fun TagConsumer.body(classes : String? = null, crossinline block : BODY.() -> Unit = {}) : HTMLBodyElement = BODY(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLBodyElement +public inline fun TagConsumer.body(classes: String? = null, crossinline + block: BODY.() -> Unit = {}): HTMLBodyElement = BODY(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) as HTMLBodyElement /** * Forced line break */ @HtmlTagMarker -public inline fun TagConsumer.br(classes : String? = null, crossinline block : BR.() -> Unit = {}) : HTMLBRElement = BR(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLBRElement +public inline fun TagConsumer.br(classes: String? = null, crossinline + block: BR.() -> Unit = {}): HTMLBRElement = BR(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) as HTMLBRElement /** * Push button */ @HtmlTagMarker -public inline fun TagConsumer.button(formEncType : ButtonFormEncType? = null, formMethod : ButtonFormMethod? = null, name : String? = null, type : ButtonType? = null, classes : String? = null, crossinline block : BUTTON.() -> Unit = {}) : HTMLButtonElement = BUTTON(attributesMapOf("formenctype", formEncType?.enumEncode(),"formmethod", formMethod?.enumEncode(),"name", name,"type", type?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) as HTMLButtonElement +public inline fun TagConsumer.button( + formEncType: ButtonFormEncType? = null, + formMethod: ButtonFormMethod? = null, + name: String? = null, + type: ButtonType? = null, + classes: String? = null, + crossinline block: BUTTON.() -> Unit = {}, +): HTMLButtonElement = BUTTON(attributesMapOf("formenctype", formEncType?.enumEncode(),"formmethod", + formMethod?.enumEncode(),"name", name,"type", type?.enumEncode(),"class", classes), this) + .visitAndFinalize(this, block) as HTMLButtonElement /** * Scriptable bitmap canvas */ @HtmlTagMarker -public fun TagConsumer.canvas(classes : String? = null, content : String = "") : HTMLCanvasElement = CANVAS(attributesMapOf("class", classes), this).visitAndFinalize(this, {+content}) as HTMLCanvasElement +public fun TagConsumer.canvas(classes: String? = null, content: String = ""): + HTMLCanvasElement = CANVAS(attributesMapOf("class", classes), this) + .visitAndFinalize(this, {+content}) as HTMLCanvasElement + /** * Scriptable bitmap canvas */ @HtmlTagMarker -public inline fun TagConsumer.canvas(classes : String? = null, crossinline block : CANVAS.() -> Unit = {}) : HTMLCanvasElement = CANVAS(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLCanvasElement +public inline fun TagConsumer.canvas(classes: String? = null, crossinline + block: CANVAS.() -> Unit = {}): HTMLCanvasElement = CANVAS(attributesMapOf("class", classes), + this) + .visitAndFinalize(this, block) as HTMLCanvasElement /** * Table caption */ @HtmlTagMarker -public inline fun TagConsumer.caption(classes : String? = null, crossinline block : CAPTION.() -> Unit = {}) : HTMLElement = CAPTION(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.caption(classes: String? = null, crossinline + block: CAPTION.() -> Unit = {}): HTMLElement = CAPTION(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Citation */ @HtmlTagMarker -public inline fun TagConsumer.cite(classes : String? = null, crossinline block : CITE.() -> Unit = {}) : HTMLElement = CITE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.cite(classes: String? = null, crossinline + block: CITE.() -> Unit = {}): HTMLElement = CITE(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Computer code fragment */ @HtmlTagMarker -public inline fun TagConsumer.code(classes : String? = null, crossinline block : CODE.() -> Unit = {}) : HTMLElement = CODE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.code(classes: String? = null, crossinline + block: CODE.() -> Unit = {}): HTMLElement = CODE(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Table column */ @HtmlTagMarker -public inline fun TagConsumer.col(classes : String? = null, crossinline block : COL.() -> Unit = {}) : HTMLTableColElement = COL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLTableColElement +public inline fun TagConsumer.col(classes: String? = null, crossinline + block: COL.() -> Unit = {}): HTMLTableColElement = COL(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) as HTMLTableColElement /** * Table column group */ @HtmlTagMarker -public inline fun TagConsumer.colGroup(classes : String? = null, crossinline block : COLGROUP.() -> Unit = {}) : HTMLTableColElement = COLGROUP(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLTableColElement +public inline fun TagConsumer.colGroup(classes: String? = null, crossinline + block: COLGROUP.() -> Unit = {}): HTMLTableColElement = COLGROUP(attributesMapOf("class", + classes), this) + .visitAndFinalize(this, block) as HTMLTableColElement @HtmlTagMarker -public inline fun TagConsumer.command(type : CommandType? = null, classes : String? = null, crossinline block : COMMAND.() -> Unit = {}) : HTMLElement = COMMAND(attributesMapOf("type", type?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.command( + type: CommandType? = null, + classes: String? = null, + crossinline block: COMMAND.() -> Unit = {}, +): HTMLElement = COMMAND(attributesMapOf("type", type?.enumEncode(),"class", classes), this) + .visitAndFinalize(this, block) /** * Container for options for */ @HtmlTagMarker -public inline fun TagConsumer.dataList(classes : String? = null, crossinline block : DATALIST.() -> Unit = {}) : HTMLDataListElement = DATALIST(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLDataListElement +public inline fun TagConsumer.dataList(classes: String? = null, crossinline + block: DATALIST.() -> Unit = {}): HTMLDataListElement = DATALIST(attributesMapOf("class", + classes), this) + .visitAndFinalize(this, block) as HTMLDataListElement /** * Definition description */ @HtmlTagMarker -public inline fun TagConsumer.dd(classes : String? = null, crossinline block : DD.() -> Unit = {}) : HTMLElement = DD(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.dd(classes: String? = null, crossinline + block: DD.() -> Unit = {}): HTMLElement = DD(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Deleted text */ @HtmlTagMarker -public inline fun TagConsumer.del(classes : String? = null, crossinline block : DEL.() -> Unit = {}) : HTMLElement = DEL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.del(classes: String? = null, crossinline + block: DEL.() -> Unit = {}): HTMLElement = DEL(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Disclosure control for hiding details */ @HtmlTagMarker -public inline fun TagConsumer.details(classes : String? = null, crossinline block : DETAILS.() -> Unit = {}) : HTMLDetailsElement = DETAILS(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLDetailsElement +public inline fun TagConsumer.details(classes: String? = null, crossinline + block: DETAILS.() -> Unit = {}): HTMLDetailsElement = DETAILS(attributesMapOf("class", classes), + this) + .visitAndFinalize(this, block) as HTMLDetailsElement /** * Instance definition */ @HtmlTagMarker -public inline fun TagConsumer.dfn(classes : String? = null, crossinline block : DFN.() -> Unit = {}) : HTMLElement = DFN(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.dfn(classes: String? = null, crossinline + block: DFN.() -> Unit = {}): HTMLElement = DFN(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Dialog box or window */ @HtmlTagMarker -public inline fun TagConsumer.dialog(classes : String? = null, crossinline block : DIALOG.() -> Unit = {}) : HTMLDialogElement = DIALOG(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLDialogElement +public inline fun TagConsumer.dialog(classes: String? = null, crossinline + block: DIALOG.() -> Unit = {}): HTMLDialogElement = DIALOG(attributesMapOf("class", classes), + this) + .visitAndFinalize(this, block) as HTMLDialogElement /** * Generic language/style container */ @HtmlTagMarker -public inline fun TagConsumer.div(classes : String? = null, crossinline block : DIV.() -> Unit = {}) : HTMLDivElement = DIV(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLDivElement +public inline fun TagConsumer.div(classes: String? = null, crossinline + block: DIV.() -> Unit = {}): HTMLDivElement = DIV(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) as HTMLDivElement /** * Definition list */ @HtmlTagMarker -public inline fun TagConsumer.dl(classes : String? = null, crossinline block : DL.() -> Unit = {}) : HTMLElement = DL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.dl(classes: String? = null, crossinline + block: DL.() -> Unit = {}): HTMLElement = DL(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Definition term */ @HtmlTagMarker -public inline fun TagConsumer.dt(classes : String? = null, crossinline block : DT.() -> Unit = {}) : HTMLElement = DT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.dt(classes: String? = null, crossinline + block: DT.() -> Unit = {}): HTMLElement = DT(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Emphasis */ @HtmlTagMarker -public inline fun TagConsumer.em(classes : String? = null, crossinline block : EM.() -> Unit = {}) : HTMLElement = EM(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.em(classes: String? = null, crossinline + block: EM.() -> Unit = {}): HTMLElement = EM(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Plugin */ @HtmlTagMarker -public inline fun TagConsumer.embed(classes : String? = null, crossinline block : EMBED.() -> Unit = {}) : HTMLEmbedElement = EMBED(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLEmbedElement +public inline fun TagConsumer.embed(classes: String? = null, crossinline + block: EMBED.() -> Unit = {}): HTMLEmbedElement = EMBED(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) as HTMLEmbedElement /** * Form control group */ @HtmlTagMarker -public inline fun TagConsumer.fieldSet(classes : String? = null, crossinline block : FIELDSET.() -> Unit = {}) : HTMLFieldSetElement = FIELDSET(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLFieldSetElement +public inline fun TagConsumer.fieldSet(classes: String? = null, crossinline + block: FIELDSET.() -> Unit = {}): HTMLFieldSetElement = FIELDSET(attributesMapOf("class", + classes), this) + .visitAndFinalize(this, block) as HTMLFieldSetElement /** * Caption for */ @HtmlTagMarker -public inline fun TagConsumer.figcaption(classes : String? = null, crossinline block : FIGCAPTION.() -> Unit = {}) : HTMLElement = FIGCAPTION(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.figcaption(classes: String? = null, crossinline + block: FIGCAPTION.() -> Unit = {}): HTMLElement = FIGCAPTION(attributesMapOf("class", classes), + this) + .visitAndFinalize(this, block) /** * Figure with optional caption */ @HtmlTagMarker -public inline fun TagConsumer.figure(classes : String? = null, crossinline block : FIGURE.() -> Unit = {}) : HTMLElement = FIGURE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.figure(classes: String? = null, crossinline + block: FIGURE.() -> Unit = {}): HTMLElement = FIGURE(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Footer for a page or section */ @HtmlTagMarker -public inline fun TagConsumer.footer(classes : String? = null, crossinline block : FOOTER.() -> Unit = {}) : HTMLElement = FOOTER(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.footer(classes: String? = null, crossinline + block: FOOTER.() -> Unit = {}): HTMLElement = FOOTER(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Interactive form */ @HtmlTagMarker -public inline fun TagConsumer.form(action : String? = null, encType : FormEncType? = null, method : FormMethod? = null, classes : String? = null, crossinline block : FORM.() -> Unit = {}) : HTMLFormElement = FORM(attributesMapOf("action", action,"enctype", encType?.enumEncode(),"method", method?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) as HTMLFormElement +public inline fun TagConsumer.form( + action: String? = null, + encType: FormEncType? = null, + method: FormMethod? = null, + classes: String? = null, + crossinline block: FORM.() -> Unit = {}, +): HTMLFormElement = FORM(attributesMapOf("action", action,"enctype", + encType?.enumEncode(),"method", method?.enumEncode(),"class", classes), this) + .visitAndFinalize(this, block) as HTMLFormElement /** * Heading */ @HtmlTagMarker -public inline fun TagConsumer.h1(classes : String? = null, crossinline block : H1.() -> Unit = {}) : HTMLHeadingElement = H1(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLHeadingElement +public inline fun TagConsumer.h1(classes: String? = null, crossinline + block: H1.() -> Unit = {}): HTMLHeadingElement = H1(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) as HTMLHeadingElement /** * Heading */ @HtmlTagMarker -public inline fun TagConsumer.h2(classes : String? = null, crossinline block : H2.() -> Unit = {}) : HTMLHeadingElement = H2(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLHeadingElement +public inline fun TagConsumer.h2(classes: String? = null, crossinline + block: H2.() -> Unit = {}): HTMLHeadingElement = H2(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) as HTMLHeadingElement /** * Heading */ @HtmlTagMarker -public inline fun TagConsumer.h3(classes : String? = null, crossinline block : H3.() -> Unit = {}) : HTMLHeadingElement = H3(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLHeadingElement +public inline fun TagConsumer.h3(classes: String? = null, crossinline + block: H3.() -> Unit = {}): HTMLHeadingElement = H3(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) as HTMLHeadingElement /** * Heading */ @HtmlTagMarker -public inline fun TagConsumer.h4(classes : String? = null, crossinline block : H4.() -> Unit = {}) : HTMLHeadingElement = H4(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLHeadingElement +public inline fun TagConsumer.h4(classes: String? = null, crossinline + block: H4.() -> Unit = {}): HTMLHeadingElement = H4(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) as HTMLHeadingElement /** * Heading */ @HtmlTagMarker -public inline fun TagConsumer.h5(classes : String? = null, crossinline block : H5.() -> Unit = {}) : HTMLHeadingElement = H5(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLHeadingElement +public inline fun TagConsumer.h5(classes: String? = null, crossinline + block: H5.() -> Unit = {}): HTMLHeadingElement = H5(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) as HTMLHeadingElement /** * Heading */ @HtmlTagMarker -public inline fun TagConsumer.h6(classes : String? = null, crossinline block : H6.() -> Unit = {}) : HTMLHeadingElement = H6(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLHeadingElement +public inline fun TagConsumer.h6(classes: String? = null, crossinline + block: H6.() -> Unit = {}): HTMLHeadingElement = H6(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) as HTMLHeadingElement -@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") -@Suppress("DEPRECATION") /** * Document head */ @HtmlTagMarker -public fun TagConsumer.head(content : String = "") : HTMLHeadElement = HEAD(emptyMap, this).visitAndFinalize(this, {+content}) as HTMLHeadElement +@Suppress("DEPRECATION") +@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") +public fun TagConsumer.head(content: String = ""): HTMLHeadElement = HEAD(emptyMap, + this) + .visitAndFinalize(this, {+content}) as HTMLHeadElement + /** * Document head */ @HtmlTagMarker -public inline fun TagConsumer.head(crossinline block : HEAD.() -> Unit = {}) : HTMLHeadElement = HEAD(emptyMap, this).visitAndFinalize(this, block) as HTMLHeadElement +public inline fun TagConsumer.head(crossinline block: HEAD.() -> Unit = {}): + HTMLHeadElement = HEAD(emptyMap, this) + .visitAndFinalize(this, block) as HTMLHeadElement /** * Introductory or navigational aids for a page or section */ @HtmlTagMarker -public inline fun TagConsumer.header(classes : String? = null, crossinline block : HEADER.() -> Unit = {}) : HTMLElement = HEADER(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.`header`(classes: String? = null, crossinline + block: HEADER.() -> Unit = {}): HTMLElement = HEADER(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) @HtmlTagMarker -public inline fun TagConsumer.hGroup(classes : String? = null, crossinline block : HGROUP.() -> Unit = {}) : HTMLElement = HGROUP(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.hGroup(classes: String? = null, crossinline + block: HGROUP.() -> Unit = {}): HTMLElement = HGROUP(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Horizontal rule */ @HtmlTagMarker -public inline fun TagConsumer.hr(classes : String? = null, crossinline block : HR.() -> Unit = {}) : HTMLHRElement = HR(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLHRElement +public inline fun TagConsumer.hr(classes: String? = null, crossinline + block: HR.() -> Unit = {}): HTMLHRElement = HR(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) as HTMLHRElement -@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") -@Suppress("DEPRECATION") /** * Document root element */ @HtmlTagMarker -public fun TagConsumer.html(content : String = "", namespace : String? = null) : HTMLHtmlElement = HTML(emptyMap, this, namespace).visitAndFinalize(this, {+content}) as HTMLHtmlElement +@Suppress("DEPRECATION") +@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") +public fun TagConsumer.html(content: String = "", namespace: String? = null): + HTMLHtmlElement = HTML(emptyMap, this, namespace) + .visitAndFinalize(this, {+content}) as HTMLHtmlElement + /** * Document root element */ @HtmlTagMarker -public inline fun TagConsumer.html(namespace : String? = null, crossinline block : HTML.() -> Unit = {}) : HTMLHtmlElement = HTML(emptyMap, this, namespace).visitAndFinalize(this, block) as HTMLHtmlElement +public inline fun TagConsumer.html(namespace: String? = null, crossinline + block: HTML.() -> Unit = {}): HTMLHtmlElement = HTML(emptyMap, this, namespace) + .visitAndFinalize(this, block) as HTMLHtmlElement /** * Italic text style */ @HtmlTagMarker -public inline fun TagConsumer.i(classes : String? = null, crossinline block : I.() -> Unit = {}) : HTMLElement = I(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.i(classes: String? = null, crossinline + block: I.() -> Unit = {}): HTMLElement = I(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Inline subwindow */ @HtmlTagMarker -public fun TagConsumer.iframe(sandbox : IframeSandbox? = null, classes : String? = null, content : String = "") : HTMLElement = IFRAME(attributesMapOf("sandbox", sandbox?.enumEncode(),"class", classes), this).visitAndFinalize(this, {+content}) +public fun TagConsumer.iframe( + sandbox: IframeSandbox? = null, + classes: String? = null, + content: String = "", +): HTMLElement = IFRAME(attributesMapOf("sandbox", sandbox?.enumEncode(),"class", classes), this) + .visitAndFinalize(this, {+content}) + /** * Inline subwindow */ @HtmlTagMarker -public inline fun TagConsumer.iframe(sandbox : IframeSandbox? = null, classes : String? = null, crossinline block : IFRAME.() -> Unit = {}) : HTMLElement = IFRAME(attributesMapOf("sandbox", sandbox?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.iframe( + sandbox: IframeSandbox? = null, + classes: String? = null, + crossinline block: IFRAME.() -> Unit = {}, +): HTMLElement = IFRAME(attributesMapOf("sandbox", sandbox?.enumEncode(),"class", classes), this) + .visitAndFinalize(this, block) /** * Embedded image */ @HtmlTagMarker -public inline fun TagConsumer.img(alt : String? = null, src : String? = null, loading : ImgLoading? = null, classes : String? = null, crossinline block : IMG.() -> Unit = {}) : HTMLImageElement = IMG(attributesMapOf("alt", alt,"src", src,"loading", loading?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) as HTMLImageElement +public inline fun TagConsumer.img( + alt: String? = null, + src: String? = null, + loading: ImgLoading? = null, + classes: String? = null, + crossinline block: IMG.() -> Unit = {}, +): HTMLImageElement = IMG(attributesMapOf("alt", alt,"src", src,"loading", + loading?.enumEncode(),"class", classes), this) + .visitAndFinalize(this, block) as HTMLImageElement /** * Form control */ @HtmlTagMarker -public inline fun TagConsumer.input(type : InputType? = null, formEncType : InputFormEncType? = null, formMethod : InputFormMethod? = null, name : String? = null, classes : String? = null, crossinline block : INPUT.() -> Unit = {}) : HTMLInputElement = INPUT(attributesMapOf("type", type?.enumEncode(),"formenctype", formEncType?.enumEncode(),"formmethod", formMethod?.enumEncode(),"name", name,"class", classes), this).visitAndFinalize(this, block) as HTMLInputElement +public inline fun TagConsumer.input( + type: InputType? = null, + formEncType: InputFormEncType? = null, + formMethod: InputFormMethod? = null, + name: String? = null, + classes: String? = null, + crossinline block: INPUT.() -> Unit = {}, +): HTMLInputElement = INPUT(attributesMapOf("type", type?.enumEncode(),"formenctype", + formEncType?.enumEncode(),"formmethod", formMethod?.enumEncode(),"name", name,"class", classes), + this) + .visitAndFinalize(this, block) as HTMLInputElement /** * Inserted text */ @HtmlTagMarker -public inline fun TagConsumer.ins(classes : String? = null, crossinline block : INS.() -> Unit = {}) : HTMLElement = INS(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.ins(classes: String? = null, crossinline + block: INS.() -> Unit = {}): HTMLElement = INS(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Text to be entered by the user */ @HtmlTagMarker -public inline fun TagConsumer.kbd(classes : String? = null, crossinline block : KBD.() -> Unit = {}) : HTMLElement = KBD(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.kbd(classes: String? = null, crossinline + block: KBD.() -> Unit = {}): HTMLElement = KBD(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Cryptographic key-pair generator form control */ @HtmlTagMarker -public inline fun TagConsumer.keyGen(keyType : KeyGenKeyType? = null, classes : String? = null, crossinline block : KEYGEN.() -> Unit = {}) : HTMLElement = KEYGEN(attributesMapOf("keytype", keyType?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.keyGen( + keyType: KeyGenKeyType? = null, + classes: String? = null, + crossinline block: KEYGEN.() -> Unit = {}, +): HTMLElement = KEYGEN(attributesMapOf("keytype", keyType?.enumEncode(),"class", classes), this) + .visitAndFinalize(this, block) /** * Form field label text */ @HtmlTagMarker -public inline fun TagConsumer.label(classes : String? = null, crossinline block : LABEL.() -> Unit = {}) : HTMLLabelElement = LABEL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLLabelElement +public inline fun TagConsumer.label(classes: String? = null, crossinline + block: LABEL.() -> Unit = {}): HTMLLabelElement = LABEL(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) as HTMLLabelElement /** * Fieldset legend */ @HtmlTagMarker -public inline fun TagConsumer.legend(classes : String? = null, crossinline block : LEGEND.() -> Unit = {}) : HTMLLegendElement = LEGEND(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLLegendElement +public inline fun TagConsumer.legend(classes: String? = null, crossinline + block: LEGEND.() -> Unit = {}): HTMLLegendElement = LEGEND(attributesMapOf("class", classes), + this) + .visitAndFinalize(this, block) as HTMLLegendElement /** * List item */ @HtmlTagMarker -public inline fun TagConsumer.li(classes : String? = null, crossinline block : LI.() -> Unit = {}) : HTMLLIElement = LI(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLLIElement +public inline fun TagConsumer.li(classes: String? = null, crossinline + block: LI.() -> Unit = {}): HTMLLIElement = LI(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) as HTMLLIElement /** * A media-independent link */ @HtmlTagMarker -public inline fun TagConsumer.link(href : String? = null, rel : String? = null, type : String? = null, crossinline block : LINK.() -> Unit = {}) : HTMLLinkElement = LINK(attributesMapOf("href", href,"rel", rel,"type", type), this).visitAndFinalize(this, block) as HTMLLinkElement +public inline fun TagConsumer.link( + href: String? = null, + rel: String? = null, + type: String? = null, + crossinline block: LINK.() -> Unit = {}, +): HTMLLinkElement = LINK(attributesMapOf("href", href,"rel", rel,"type", type), this) + .visitAndFinalize(this, block) as HTMLLinkElement /** * Container for the dominant contents of another element */ @HtmlTagMarker -public inline fun TagConsumer.main(classes : String? = null, crossinline block : MAIN.() -> Unit = {}) : HTMLElement = MAIN(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.main(classes: String? = null, crossinline + block: MAIN.() -> Unit = {}): HTMLElement = MAIN(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Client-side image map */ @HtmlTagMarker -public inline fun TagConsumer.map(name : String? = null, classes : String? = null, crossinline block : MAP.() -> Unit = {}) : HTMLMapElement = MAP(attributesMapOf("name", name,"class", classes), this).visitAndFinalize(this, block) as HTMLMapElement +public inline fun TagConsumer.map( + name: String? = null, + classes: String? = null, + crossinline block: MAP.() -> Unit = {}, +): HTMLMapElement = MAP(attributesMapOf("name", name,"class", classes), this) + .visitAndFinalize(this, block) as HTMLMapElement /** * Highlight */ @HtmlTagMarker -public inline fun TagConsumer.mark(classes : String? = null, crossinline block : MARK.() -> Unit = {}) : HTMLElement = MARK(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.mark(classes: String? = null, crossinline + block: MARK.() -> Unit = {}): HTMLElement = MARK(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) @HtmlTagMarker -public inline fun TagConsumer.math(classes : String? = null, crossinline block : MATH.() -> Unit = {}) : HTMLElement = MATH(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.math(classes: String? = null, crossinline + block: MATH.() -> Unit = {}): HTMLElement = MATH(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) @HtmlTagMarker -public fun TagConsumer.mathml(classes : String? = null, content : String = "") : HTMLElement = MATHML(attributesMapOf("class", classes), this).visitAndFinalize(this, {+content}) +public fun TagConsumer.mathml(classes: String? = null, content: String = ""): + HTMLElement = MATHML(attributesMapOf("class", classes), this) + .visitAndFinalize(this, {+content}) + @HtmlTagMarker -public inline fun TagConsumer.mathml(classes : String? = null, crossinline block : MATHML.() -> Unit = {}) : HTMLElement = MATHML(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.mathml(classes: String? = null, crossinline + block: MATHML.() -> Unit = {}): HTMLElement = MATHML(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Generic metainformation */ @HtmlTagMarker -public inline fun TagConsumer.meta(name : String? = null, content : String? = null, charset : String? = null, crossinline block : META.() -> Unit = {}) : HTMLMetaElement = META(attributesMapOf("name", name,"content", content,"charset", charset), this).visitAndFinalize(this, block) as HTMLMetaElement +public inline fun TagConsumer.meta( + name: String? = null, + content: String? = null, + charset: String? = null, + crossinline block: META.() -> Unit = {}, +): HTMLMetaElement = META(attributesMapOf("name", name,"content", content,"charset", charset), this) + .visitAndFinalize(this, block) as HTMLMetaElement /** * Gauge */ @HtmlTagMarker -public inline fun TagConsumer.meter(classes : String? = null, crossinline block : METER.() -> Unit = {}) : HTMLMeterElement = METER(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLMeterElement +public inline fun TagConsumer.meter(classes: String? = null, crossinline + block: METER.() -> Unit = {}): HTMLMeterElement = METER(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) as HTMLMeterElement /** * Section with navigational links */ @HtmlTagMarker -public inline fun TagConsumer.nav(classes : String? = null, crossinline block : NAV.() -> Unit = {}) : HTMLElement = NAV(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.nav(classes: String? = null, crossinline + block: NAV.() -> Unit = {}): HTMLElement = NAV(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Generic metainformation */ @HtmlTagMarker -public inline fun TagConsumer.noScript(classes : String? = null, crossinline block : NOSCRIPT.() -> Unit = {}) : HTMLElement = NOSCRIPT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.noScript(classes: String? = null, crossinline + block: NOSCRIPT.() -> Unit = {}): HTMLElement = NOSCRIPT(attributesMapOf("class", classes), + this) + .visitAndFinalize(this, block) /** * Generic embedded object */ @HtmlTagMarker -public inline fun TagConsumer.htmlObject(classes : String? = null, crossinline block : OBJECT.() -> Unit = {}) : HTMLElement = OBJECT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.htmlObject(classes: String? = null, crossinline + block: OBJECT.() -> Unit = {}): HTMLElement = OBJECT(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Ordered list */ @HtmlTagMarker -public inline fun TagConsumer.ol(classes : String? = null, crossinline block : OL.() -> Unit = {}) : HTMLElement = OL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.ol(classes: String? = null, crossinline + block: OL.() -> Unit = {}): HTMLElement = OL(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Option group */ @HtmlTagMarker -public inline fun TagConsumer.optGroup(label : String? = null, classes : String? = null, crossinline block : OPTGROUP.() -> Unit = {}) : HTMLOptGroupElement = OPTGROUP(attributesMapOf("label", label,"class", classes), this).visitAndFinalize(this, block) as HTMLOptGroupElement +public inline fun TagConsumer.optGroup( + label: String? = null, + classes: String? = null, + crossinline block: OPTGROUP.() -> Unit = {}, +): HTMLOptGroupElement = OPTGROUP(attributesMapOf("label", label,"class", classes), this) + .visitAndFinalize(this, block) as HTMLOptGroupElement /** * Selectable choice */ @HtmlTagMarker -public fun TagConsumer.option(classes : String? = null, content : String = "") : HTMLOptionElement = OPTION(attributesMapOf("class", classes), this).visitAndFinalize(this, {+content}) as HTMLOptionElement +public fun TagConsumer.option(classes: String? = null, content: String = ""): + HTMLOptionElement = OPTION(attributesMapOf("class", classes), this) + .visitAndFinalize(this, {+content}) as HTMLOptionElement + /** * Selectable choice */ @HtmlTagMarker -public inline fun TagConsumer.option(classes : String? = null, crossinline block : OPTION.() -> Unit = {}) : HTMLOptionElement = OPTION(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLOptionElement +public inline fun TagConsumer.option(classes: String? = null, crossinline + block: OPTION.() -> Unit = {}): HTMLOptionElement = OPTION(attributesMapOf("class", classes), + this) + .visitAndFinalize(this, block) as HTMLOptionElement /** * Calculated output value */ @HtmlTagMarker -public inline fun TagConsumer.output(classes : String? = null, crossinline block : OUTPUT.() -> Unit = {}) : HTMLOutputElement = OUTPUT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLOutputElement +public inline fun TagConsumer.output(classes: String? = null, crossinline + block: OUTPUT.() -> Unit = {}): HTMLOutputElement = OUTPUT(attributesMapOf("class", classes), + this) + .visitAndFinalize(this, block) as HTMLOutputElement /** * Paragraph */ @HtmlTagMarker -public inline fun TagConsumer.p(classes : String? = null, crossinline block : P.() -> Unit = {}) : HTMLParagraphElement = P(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLParagraphElement +public inline fun TagConsumer.p(classes: String? = null, crossinline + block: P.() -> Unit = {}): HTMLParagraphElement = P(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) as HTMLParagraphElement /** * Named property value */ @HtmlTagMarker -public inline fun TagConsumer.param(name : String? = null, value : String? = null, crossinline block : PARAM.() -> Unit = {}) : HTMLParamElement = PARAM(attributesMapOf("name", name,"value", value), this).visitAndFinalize(this, block) as HTMLParamElement +public inline fun TagConsumer.`param`( + name: String? = null, + `value`: String? = null, + crossinline block: PARAM.() -> Unit = {}, +): HTMLParamElement = PARAM(attributesMapOf("name", name,"value", value), this) + .visitAndFinalize(this, block) as HTMLParamElement /** * Pictures container */ @HtmlTagMarker -public inline fun TagConsumer.picture(crossinline block : PICTURE.() -> Unit = {}) : HTMLPictureElement = PICTURE(emptyMap, this).visitAndFinalize(this, block) as HTMLPictureElement +public inline fun TagConsumer.picture(crossinline block: PICTURE.() -> Unit = {}): + HTMLPictureElement = PICTURE(emptyMap, this) + .visitAndFinalize(this, block) as HTMLPictureElement /** * Preformatted text */ @HtmlTagMarker -public inline fun TagConsumer.pre(classes : String? = null, crossinline block : PRE.() -> Unit = {}) : HTMLPreElement = PRE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLPreElement +public inline fun TagConsumer.pre(classes: String? = null, crossinline + block: PRE.() -> Unit = {}): HTMLPreElement = PRE(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) as HTMLPreElement /** * Progress bar */ @HtmlTagMarker -public inline fun TagConsumer.progress(classes : String? = null, crossinline block : PROGRESS.() -> Unit = {}) : HTMLProgressElement = PROGRESS(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLProgressElement +public inline fun TagConsumer.progress(classes: String? = null, crossinline + block: PROGRESS.() -> Unit = {}): HTMLProgressElement = PROGRESS(attributesMapOf("class", + classes), this) + .visitAndFinalize(this, block) as HTMLProgressElement /** * Short inline quotation */ @HtmlTagMarker -public inline fun TagConsumer.q(classes : String? = null, crossinline block : Q.() -> Unit = {}) : HTMLElement = Q(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.q(classes: String? = null, crossinline + block: Q.() -> Unit = {}): HTMLElement = Q(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Parenthesis for ruby annotation text */ @HtmlTagMarker -public inline fun TagConsumer.rp(classes : String? = null, crossinline block : RP.() -> Unit = {}) : HTMLElement = RP(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.rp(classes: String? = null, crossinline + block: RP.() -> Unit = {}): HTMLElement = RP(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Ruby annotation text */ @HtmlTagMarker -public inline fun TagConsumer.rt(classes : String? = null, crossinline block : RT.() -> Unit = {}) : HTMLElement = RT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.rt(classes: String? = null, crossinline + block: RT.() -> Unit = {}): HTMLElement = RT(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Ruby annotation(s) */ @HtmlTagMarker -public inline fun TagConsumer.ruby(classes : String? = null, crossinline block : RUBY.() -> Unit = {}) : HTMLElement = RUBY(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.ruby(classes: String? = null, crossinline + block: RUBY.() -> Unit = {}): HTMLElement = RUBY(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Strike-through text style */ @HtmlTagMarker -public inline fun TagConsumer.samp(classes : String? = null, crossinline block : SAMP.() -> Unit = {}) : HTMLElement = SAMP(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.s(classes: String? = null, crossinline + block: S.() -> Unit = {}): HTMLElement = S(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) + +/** + * Computer output text style + */ +@HtmlTagMarker +public inline fun TagConsumer.samp(classes: String? = null, crossinline + block: SAMP.() -> Unit = {}): HTMLElement = SAMP(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) -@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") -@Suppress("DEPRECATION") /** * Script statements */ @HtmlTagMarker -public fun TagConsumer.script(type : String? = null, src : String? = null, content : String = "") : HTMLScriptElement = SCRIPT(attributesMapOf("type", type,"src", src), this).visitAndFinalize(this, {+content}) as HTMLScriptElement +@Suppress("DEPRECATION") +@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") +public fun TagConsumer.script( + type: String? = null, + src: String? = null, + crossorigin: ScriptCrossorigin? = null, + content: String = "", +): HTMLScriptElement = SCRIPT(attributesMapOf("type", type,"src", src,"crossorigin", + crossorigin?.enumEncode()), this) + .visitAndFinalize(this, {+content}) as HTMLScriptElement + /** * Script statements */ @HtmlTagMarker -public inline fun TagConsumer.script(type : String? = null, src : String? = null, crossinline block : SCRIPT.() -> Unit = {}) : HTMLScriptElement = SCRIPT(attributesMapOf("type", type,"src", src), this).visitAndFinalize(this, block) as HTMLScriptElement +public inline fun TagConsumer.script( + type: String? = null, + src: String? = null, + crossorigin: ScriptCrossorigin? = null, + crossinline block: SCRIPT.() -> Unit = {}, +): HTMLScriptElement = SCRIPT(attributesMapOf("type", type,"src", src,"crossorigin", + crossorigin?.enumEncode()), this) + .visitAndFinalize(this, block) as HTMLScriptElement /** * Generic document or application section */ @HtmlTagMarker -public inline fun TagConsumer.section(classes : String? = null, crossinline block : SECTION.() -> Unit = {}) : HTMLElement = SECTION(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.section(classes: String? = null, crossinline + block: SECTION.() -> Unit = {}): HTMLElement = SECTION(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Option selector */ @HtmlTagMarker -public inline fun TagConsumer.select(classes : String? = null, crossinline block : SELECT.() -> Unit = {}) : HTMLSelectElement = SELECT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLSelectElement +public inline fun TagConsumer.select(classes: String? = null, crossinline + block: SELECT.() -> Unit = {}): HTMLSelectElement = SELECT(attributesMapOf("class", classes), + this) + .visitAndFinalize(this, block) as HTMLSelectElement /** * Small text style */ @HtmlTagMarker -public inline fun TagConsumer.small(classes : String? = null, crossinline block : SMALL.() -> Unit = {}) : HTMLElement = SMALL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.small(classes: String? = null, crossinline + block: SMALL.() -> Unit = {}): HTMLElement = SMALL(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Media source for */ @HtmlTagMarker -public inline fun TagConsumer.source(classes : String? = null, crossinline block : SOURCE.() -> Unit = {}) : HTMLSourceElement = SOURCE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLSourceElement +public inline fun TagConsumer.source(classes: String? = null, crossinline + block: SOURCE.() -> Unit = {}): HTMLSourceElement = SOURCE(attributesMapOf("class", classes), + this) + .visitAndFinalize(this, block) as HTMLSourceElement /** * Generic language/style container */ @HtmlTagMarker -public inline fun TagConsumer.span(classes : String? = null, crossinline block : SPAN.() -> Unit = {}) : HTMLSpanElement = SPAN(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLSpanElement +public inline fun TagConsumer.span(classes: String? = null, crossinline + block: SPAN.() -> Unit = {}): HTMLSpanElement = SPAN(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) as HTMLSpanElement /** * Strong emphasis */ @HtmlTagMarker -public inline fun TagConsumer.strong(classes : String? = null, crossinline block : STRONG.() -> Unit = {}) : HTMLElement = STRONG(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.strong(classes: String? = null, crossinline + block: STRONG.() -> Unit = {}): HTMLElement = STRONG(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) -@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") -@Suppress("DEPRECATION") /** * Style info */ @HtmlTagMarker -public fun TagConsumer.style(type : String? = null, content : String = "") : HTMLStyleElement = STYLE(attributesMapOf("type", type), this).visitAndFinalize(this, {+content}) as HTMLStyleElement +@Suppress("DEPRECATION") +@Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})") +public fun TagConsumer.style(type: String? = null, content: String = ""): + HTMLStyleElement = STYLE(attributesMapOf("type", type), this) + .visitAndFinalize(this, {+content}) as HTMLStyleElement + /** * Style info */ @HtmlTagMarker -public inline fun TagConsumer.style(type : String? = null, crossinline block : STYLE.() -> Unit = {}) : HTMLStyleElement = STYLE(attributesMapOf("type", type), this).visitAndFinalize(this, block) as HTMLStyleElement +public inline fun TagConsumer.style(type: String? = null, crossinline + block: STYLE.() -> Unit = {}): HTMLStyleElement = STYLE(attributesMapOf("type", type), this) + .visitAndFinalize(this, block) as HTMLStyleElement /** * Subscript */ @HtmlTagMarker -public inline fun TagConsumer.sub(classes : String? = null, crossinline block : SUB.() -> Unit = {}) : HTMLElement = SUB(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.sub(classes: String? = null, crossinline + block: SUB.() -> Unit = {}): HTMLElement = SUB(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Caption for */ @HtmlTagMarker -public inline fun TagConsumer.summary(classes : String? = null, crossinline block : SUMMARY.() -> Unit = {}) : HTMLElement = SUMMARY(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.summary(classes: String? = null, crossinline + block: SUMMARY.() -> Unit = {}): HTMLElement = SUMMARY(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Superscript */ @HtmlTagMarker -public inline fun TagConsumer.sup(classes : String? = null, crossinline block : SUP.() -> Unit = {}) : HTMLElement = SUP(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.sup(classes: String? = null, crossinline + block: SUP.() -> Unit = {}): HTMLElement = SUP(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) @HtmlTagMarker -public fun TagConsumer.svg(classes : String? = null, content : String = "") : HTMLElement = SVG(attributesMapOf("class", classes), this).visitAndFinalize(this, {+content}) +public fun TagConsumer.svg(classes: String? = null, content: String = ""): HTMLElement + = SVG(attributesMapOf("class", classes), this) + .visitAndFinalize(this, {+content}) + @HtmlTagMarker -public inline fun TagConsumer.svg(classes : String? = null, crossinline block : SVG.() -> Unit = {}) : HTMLElement = SVG(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.svg(classes: String? = null, crossinline + block: SVG.() -> Unit = {}): HTMLElement = SVG(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** - * + * */ @HtmlTagMarker -public inline fun TagConsumer.table(classes : String? = null, crossinline block : TABLE.() -> Unit = {}) : HTMLTableElement = TABLE(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLTableElement +public inline fun TagConsumer.table(classes: String? = null, crossinline + block: TABLE.() -> Unit = {}): HTMLTableElement = TABLE(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) as HTMLTableElement /** * Table body */ @HtmlTagMarker -public inline fun TagConsumer.tbody(classes : String? = null, crossinline block : TBODY.() -> Unit = {}) : HTMLTableSectionElement = TBODY(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLTableSectionElement +public inline fun TagConsumer.tbody(classes: String? = null, crossinline + block: TBODY.() -> Unit = {}): HTMLTableSectionElement = TBODY(attributesMapOf("class", + classes), this) + .visitAndFinalize(this, block) as HTMLTableSectionElement /** * Table data cell */ @HtmlTagMarker -public inline fun TagConsumer.td(classes : String? = null, crossinline block : TD.() -> Unit = {}) : HTMLTableCellElement = TD(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLTableCellElement +public inline fun TagConsumer.td(classes: String? = null, crossinline + block: TD.() -> Unit = {}): HTMLTableCellElement = TD(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) as HTMLTableCellElement /** * Multi-line text field */ @HtmlTagMarker -public fun TagConsumer.textArea(rows : String? = null, cols : String? = null, wrap : TextAreaWrap? = null, classes : String? = null, content : String = "") : HTMLTextAreaElement = TEXTAREA(attributesMapOf("rows", rows,"cols", cols,"wrap", wrap?.enumEncode(),"class", classes), this).visitAndFinalize(this, {+content}) as HTMLTextAreaElement +public fun TagConsumer.textArea( + rows: String? = null, + cols: String? = null, + wrap: TextAreaWrap? = null, + classes: String? = null, + content: String = "", +): HTMLTextAreaElement = TEXTAREA(attributesMapOf("rows", rows,"cols", cols,"wrap", + wrap?.enumEncode(),"class", classes), this) + .visitAndFinalize(this, {+content}) as HTMLTextAreaElement + /** * Multi-line text field */ @HtmlTagMarker -public inline fun TagConsumer.textArea(rows : String? = null, cols : String? = null, wrap : TextAreaWrap? = null, classes : String? = null, crossinline block : TEXTAREA.() -> Unit = {}) : HTMLTextAreaElement = TEXTAREA(attributesMapOf("rows", rows,"cols", cols,"wrap", wrap?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) as HTMLTextAreaElement +public inline fun TagConsumer.textArea( + rows: String? = null, + cols: String? = null, + wrap: TextAreaWrap? = null, + classes: String? = null, + crossinline block: TEXTAREA.() -> Unit = {}, +): HTMLTextAreaElement = TEXTAREA(attributesMapOf("rows", rows,"cols", cols,"wrap", + wrap?.enumEncode(),"class", classes), this) + .visitAndFinalize(this, block) as HTMLTextAreaElement /** * Table footer */ @HtmlTagMarker -public inline fun TagConsumer.tfoot(classes : String? = null, crossinline block : TFOOT.() -> Unit = {}) : HTMLTableSectionElement = TFOOT(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLTableSectionElement +public inline fun TagConsumer.tfoot(classes: String? = null, crossinline + block: TFOOT.() -> Unit = {}): HTMLTableSectionElement = TFOOT(attributesMapOf("class", + classes), this) + .visitAndFinalize(this, block) as HTMLTableSectionElement /** * Table header cell */ @HtmlTagMarker -public inline fun TagConsumer.th(scope : ThScope? = null, classes : String? = null, crossinline block : TH.() -> Unit = {}) : HTMLTableCellElement = TH(attributesMapOf("scope", scope?.enumEncode(),"class", classes), this).visitAndFinalize(this, block) as HTMLTableCellElement +public inline fun TagConsumer.th( + scope: ThScope? = null, + classes: String? = null, + crossinline block: TH.() -> Unit = {}, +): HTMLTableCellElement = TH(attributesMapOf("scope", scope?.enumEncode(),"class", classes), this) + .visitAndFinalize(this, block) as HTMLTableCellElement /** * Table header */ @HtmlTagMarker -public inline fun TagConsumer.thead(classes : String? = null, crossinline block : THEAD.() -> Unit = {}) : HTMLTableSectionElement = THEAD(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLTableSectionElement +public inline fun TagConsumer.thead(classes: String? = null, crossinline + block: THEAD.() -> Unit = {}): HTMLTableSectionElement = THEAD(attributesMapOf("class", + classes), this) + .visitAndFinalize(this, block) as HTMLTableSectionElement /** * Machine-readable equivalent of date- or time-related data */ @HtmlTagMarker -public inline fun TagConsumer.time(classes : String? = null, crossinline block : TIME.() -> Unit = {}) : HTMLTimeElement = TIME(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLTimeElement +public inline fun TagConsumer.time(classes: String? = null, crossinline + block: TIME.() -> Unit = {}): HTMLTimeElement = TIME(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) as HTMLTimeElement /** * Document title */ @HtmlTagMarker -public fun TagConsumer.title(content : String = "") : HTMLTitleElement = TITLE(emptyMap, this).visitAndFinalize(this, {+content}) as HTMLTitleElement +public fun TagConsumer.title(content: String = ""): HTMLTitleElement = TITLE(emptyMap, + this) + .visitAndFinalize(this, {+content}) as HTMLTitleElement + /** * Document title */ @HtmlTagMarker -public inline fun TagConsumer.title(crossinline block : TITLE.() -> Unit = {}) : HTMLTitleElement = TITLE(emptyMap, this).visitAndFinalize(this, block) as HTMLTitleElement +public inline fun TagConsumer.title(crossinline block: TITLE.() -> Unit = {}): + HTMLTitleElement = TITLE(emptyMap, this) + .visitAndFinalize(this, block) as HTMLTitleElement /** * Table row */ @HtmlTagMarker -public inline fun TagConsumer.tr(classes : String? = null, crossinline block : TR.() -> Unit = {}) : HTMLTableRowElement = TR(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLTableRowElement +public inline fun TagConsumer.tr(classes: String? = null, crossinline + block: TR.() -> Unit = {}): HTMLTableRowElement = TR(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) as HTMLTableRowElement + +/** + * Underlined text style + */ +@HtmlTagMarker +public inline fun TagConsumer.u(classes: String? = null, crossinline + block: U.() -> Unit = {}): HTMLElement = U(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Unordered list */ @HtmlTagMarker -public inline fun TagConsumer.ul(classes : String? = null, crossinline block : UL.() -> Unit = {}) : HTMLElement = UL(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.ul(classes: String? = null, crossinline + block: UL.() -> Unit = {}): HTMLElement = UL(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Unordered list */ @HtmlTagMarker -public inline fun TagConsumer.htmlVar(classes : String? = null, crossinline block : VAR.() -> Unit = {}) : HTMLElement = VAR(attributesMapOf("class", classes), this).visitAndFinalize(this, block) +public inline fun TagConsumer.htmlVar(classes: String? = null, crossinline + block: VAR.() -> Unit = {}): HTMLElement = VAR(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) /** * Video player */ @HtmlTagMarker -public inline fun TagConsumer.video(classes : String? = null, crossinline block : VIDEO.() -> Unit = {}) : HTMLVideoElement = VIDEO(attributesMapOf("class", classes), this).visitAndFinalize(this, block) as HTMLVideoElement - +public inline fun TagConsumer.video(classes: String? = null, crossinline + block: VIDEO.() -> Unit = {}): HTMLVideoElement = VIDEO(attributesMapOf("class", classes), this) + .visitAndFinalize(this, block) as HTMLVideoElement diff --git a/src/wasmJsMain/kotlin/generated/gen-consumer-tags-wasm-js.kt b/src/wasmJsMain/kotlin/generated/gen-consumer-tags-wasm-js.kt index 62e6d856..05c8c036 100644 --- a/src/wasmJsMain/kotlin/generated/gen-consumer-tags-wasm-js.kt +++ b/src/wasmJsMain/kotlin/generated/gen-consumer-tags-wasm-js.kt @@ -74,6 +74,7 @@ import kotlinx.html.IMG import kotlinx.html.INPUT import kotlinx.html.INS import kotlinx.html.IframeSandbox +import kotlinx.html.ImgLoading import kotlinx.html.InputFormEncType import kotlinx.html.InputFormMethod import kotlinx.html.InputType @@ -674,9 +675,11 @@ public inline fun TagConsumer.iframe( public inline fun TagConsumer.img( alt: String? = null, src: String? = null, + loading: ImgLoading? = null, classes: String? = null, crossinline block: IMG.() -> Unit = {}, -): HTMLImageElement = IMG(attributesMapOf("alt", alt,"src", src,"class", classes), this) +): HTMLImageElement = IMG(attributesMapOf("alt", alt,"src", src,"loading", + loading?.enumEncode(),"class", classes), this) .visitAndFinalize(this, block) as HTMLImageElement /**