diff --git a/api/kotlinx-html.api b/api/kotlinx-html.api index 3ecc15dc..72adeb65 100644 --- a/api/kotlinx-html.api +++ b/api/kotlinx-html.api @@ -1328,12 +1328,14 @@ public final class kotlinx/html/Gen_consumer_tagsKt { public static synthetic fun rt$default (Lkotlinx/html/TagConsumer;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/Object; public static final fun ruby (Lkotlinx/html/TagConsumer;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static synthetic fun ruby$default (Lkotlinx/html/TagConsumer;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/Object; + public static final fun s (Lkotlinx/html/TagConsumer;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + public static synthetic fun s$default (Lkotlinx/html/TagConsumer;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/Object; public static final fun samp (Lkotlinx/html/TagConsumer;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static synthetic fun samp$default (Lkotlinx/html/TagConsumer;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/Object; - public static final fun script (Lkotlinx/html/TagConsumer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object; - public static final fun script (Lkotlinx/html/TagConsumer;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; - public static synthetic fun script$default (Lkotlinx/html/TagConsumer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ljava/lang/Object; - public static synthetic fun script$default (Lkotlinx/html/TagConsumer;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/Object; + public static final fun script (Lkotlinx/html/TagConsumer;Ljava/lang/String;Ljava/lang/String;Lkotlinx/html/ScriptCrossorigin;Ljava/lang/String;)Ljava/lang/Object; + public static final fun script (Lkotlinx/html/TagConsumer;Ljava/lang/String;Ljava/lang/String;Lkotlinx/html/ScriptCrossorigin;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + public static synthetic fun script$default (Lkotlinx/html/TagConsumer;Ljava/lang/String;Ljava/lang/String;Lkotlinx/html/ScriptCrossorigin;Ljava/lang/String;ILjava/lang/Object;)Ljava/lang/Object; + public static synthetic fun script$default (Lkotlinx/html/TagConsumer;Ljava/lang/String;Ljava/lang/String;Lkotlinx/html/ScriptCrossorigin;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/Object; public static final fun section (Lkotlinx/html/TagConsumer;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static synthetic fun section$default (Lkotlinx/html/TagConsumer;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/Object; public static final fun select (Lkotlinx/html/TagConsumer;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; @@ -1384,6 +1386,8 @@ public final class kotlinx/html/Gen_consumer_tagsKt { public static synthetic fun title$default (Lkotlinx/html/TagConsumer;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/Object; public static final fun tr (Lkotlinx/html/TagConsumer;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static synthetic fun tr$default (Lkotlinx/html/TagConsumer;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/Object; + public static final fun u (Lkotlinx/html/TagConsumer;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; + public static synthetic fun u$default (Lkotlinx/html/TagConsumer;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/Object; public static final fun ul (Lkotlinx/html/TagConsumer;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; public static synthetic fun ul$default (Lkotlinx/html/TagConsumer;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/Object; public static final fun video (Lkotlinx/html/TagConsumer;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object; @@ -1433,6 +1437,8 @@ public final class kotlinx/html/Gen_tag_groupsKt { public static synthetic fun pre$default (Lkotlinx/html/FlowContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public static final fun putForm (Lkotlinx/html/FlowContent;Ljava/lang/String;Lkotlinx/html/FormEncType;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun putForm$default (Lkotlinx/html/FlowContent;Ljava/lang/String;Lkotlinx/html/FormEncType;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V + public static final fun s (Lkotlinx/html/FlowContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V + public static synthetic fun s$default (Lkotlinx/html/FlowContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public static final fun summary (Lkotlinx/html/FlowContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun summary$default (Lkotlinx/html/FlowContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public static final fun table (Lkotlinx/html/FlowContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V @@ -1441,6 +1447,8 @@ public final class kotlinx/html/Gen_tag_groupsKt { public static final fun title (Lkotlinx/html/MetaDataContent;Lkotlin/jvm/functions/Function1;)V public static synthetic fun title$default (Lkotlinx/html/MetaDataContent;Ljava/lang/String;ILjava/lang/Object;)V public static synthetic fun title$default (Lkotlinx/html/MetaDataContent;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V + public static final fun u (Lkotlinx/html/FlowContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V + public static synthetic fun u$default (Lkotlinx/html/FlowContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public static final fun ul (Lkotlinx/html/FlowContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun ul$default (Lkotlinx/html/FlowContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V } @@ -1462,6 +1470,10 @@ public final class kotlinx/html/Gen_tag_unionsKt { public static final fun allowScriptsIframe (Lkotlinx/html/FlowOrInteractiveOrPhrasingContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun allowScriptsIframe$default (Lkotlinx/html/FlowOrInteractiveOrPhrasingContent;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)V public static synthetic fun allowScriptsIframe$default (Lkotlinx/html/FlowOrInteractiveOrPhrasingContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V + public static final fun anonymousScript (Lkotlinx/html/FlowOrMetaDataOrPhrasingContent;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public static final fun anonymousScript (Lkotlinx/html/FlowOrMetaDataOrPhrasingContent;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V + public static synthetic fun anonymousScript$default (Lkotlinx/html/FlowOrMetaDataOrPhrasingContent;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)V + public static synthetic fun anonymousScript$default (Lkotlinx/html/FlowOrMetaDataOrPhrasingContent;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public static final fun area (Lkotlinx/html/FlowOrPhrasingContent;Lkotlinx/html/AreaShape;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun area$default (Lkotlinx/html/FlowOrPhrasingContent;Lkotlinx/html/AreaShape;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public static final fun article (Lkotlinx/html/SectioningOrFlowContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V @@ -1630,10 +1642,10 @@ public final class kotlinx/html/Gen_tag_unionsKt { public static synthetic fun ruby$default (Lkotlinx/html/FlowOrPhrasingContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public static final fun samp (Lkotlinx/html/FlowOrPhrasingContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun samp$default (Lkotlinx/html/FlowOrPhrasingContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V - public static final fun script (Lkotlinx/html/FlowOrMetaDataOrPhrasingContent;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V - public static final fun script (Lkotlinx/html/FlowOrMetaDataOrPhrasingContent;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V - public static synthetic fun script$default (Lkotlinx/html/FlowOrMetaDataOrPhrasingContent;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)V - public static synthetic fun script$default (Lkotlinx/html/FlowOrMetaDataOrPhrasingContent;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V + public static final fun script (Lkotlinx/html/FlowOrMetaDataOrPhrasingContent;Ljava/lang/String;Ljava/lang/String;Lkotlinx/html/ScriptCrossorigin;Ljava/lang/String;)V + public static final fun script (Lkotlinx/html/FlowOrMetaDataOrPhrasingContent;Ljava/lang/String;Ljava/lang/String;Lkotlinx/html/ScriptCrossorigin;Lkotlin/jvm/functions/Function1;)V + public static synthetic fun script$default (Lkotlinx/html/FlowOrMetaDataOrPhrasingContent;Ljava/lang/String;Ljava/lang/String;Lkotlinx/html/ScriptCrossorigin;Ljava/lang/String;ILjava/lang/Object;)V + public static synthetic fun script$default (Lkotlinx/html/FlowOrMetaDataOrPhrasingContent;Ljava/lang/String;Ljava/lang/String;Lkotlinx/html/ScriptCrossorigin;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public static final fun searchInput (Lkotlinx/html/FlowOrInteractiveOrPhrasingContent;Lkotlinx/html/InputFormEncType;Lkotlinx/html/InputFormMethod;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun searchInput$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 section (Lkotlinx/html/SectioningOrFlowContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V @@ -1678,6 +1690,10 @@ public final class kotlinx/html/Gen_tag_unionsKt { public static synthetic fun timeInput$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 urlInput (Lkotlinx/html/FlowOrInteractiveOrPhrasingContent;Lkotlinx/html/InputFormEncType;Lkotlinx/html/InputFormMethod;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun urlInput$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 useCredentialsScript (Lkotlinx/html/FlowOrMetaDataOrPhrasingContent;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V + public static final fun useCredentialsScript (Lkotlinx/html/FlowOrMetaDataOrPhrasingContent;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V + public static synthetic fun useCredentialsScript$default (Lkotlinx/html/FlowOrMetaDataOrPhrasingContent;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)V + public static synthetic fun useCredentialsScript$default (Lkotlinx/html/FlowOrMetaDataOrPhrasingContent;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public static final fun video (Lkotlinx/html/FlowOrInteractiveOrPhrasingContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun video$default (Lkotlinx/html/FlowOrInteractiveOrPhrasingContent;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V public static final fun weekInput (Lkotlinx/html/FlowOrInteractiveOrPhrasingContent;Lkotlinx/html/InputFormEncType;Lkotlinx/html/InputFormMethod;Ljava/lang/String;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V @@ -1896,6 +1912,7 @@ public final class kotlinx/html/Gen_tags_rKt { } public final class kotlinx/html/Gen_tags_sKt { + public static final fun getAsFlowContent (Lkotlinx/html/S;)Lkotlinx/html/FlowContent; public static final fun getAsFlowContent (Lkotlinx/html/SAMP;)Lkotlinx/html/FlowContent; public static final fun getAsFlowContent (Lkotlinx/html/SCRIPT;)Lkotlinx/html/FlowContent; public static final fun getAsFlowContent (Lkotlinx/html/SECTION;)Lkotlinx/html/FlowContent; @@ -1910,6 +1927,7 @@ public final class kotlinx/html/Gen_tags_sKt { public static final fun getAsInteractiveContent (Lkotlinx/html/SELECT;)Lkotlinx/html/InteractiveContent; public static final fun getAsMetaDataContent (Lkotlinx/html/SCRIPT;)Lkotlinx/html/MetaDataContent; public static final fun getAsMetaDataContent (Lkotlinx/html/STYLE;)Lkotlinx/html/MetaDataContent; + public static final fun getAsPhrasingContent (Lkotlinx/html/S;)Lkotlinx/html/PhrasingContent; public static final fun getAsPhrasingContent (Lkotlinx/html/SAMP;)Lkotlinx/html/PhrasingContent; public static final fun getAsPhrasingContent (Lkotlinx/html/SCRIPT;)Lkotlinx/html/PhrasingContent; public static final fun getAsPhrasingContent (Lkotlinx/html/SELECT;)Lkotlinx/html/PhrasingContent; @@ -1967,6 +1985,8 @@ public final class kotlinx/html/Gen_tags_tKt { } public final class kotlinx/html/Gen_tags_uKt { + public static final fun getAsFlowContent (Lkotlinx/html/U;)Lkotlinx/html/FlowContent; + public static final fun getAsPhrasingContent (Lkotlinx/html/U;)Lkotlinx/html/PhrasingContent; public static final fun li (Lkotlinx/html/UL;Ljava/lang/String;Lkotlin/jvm/functions/Function1;)V public static synthetic fun li$default (Lkotlinx/html/UL;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V } @@ -2704,6 +2724,11 @@ public final class kotlinx/html/RunAt : java/lang/Enum, kotlinx/html/AttributeEn public static fun values ()[Lkotlinx/html/RunAt; } +public class kotlinx/html/S : kotlinx/html/HTMLTag, kotlinx/html/HtmlBlockInlineTag { + public fun (Ljava/util/Map;Lkotlinx/html/TagConsumer;)V + public fun getConsumer ()Lkotlinx/html/TagConsumer; +} + public class kotlinx/html/SAMP : kotlinx/html/HTMLTag, kotlinx/html/HtmlBlockInlineTag { public fun (Ljava/util/Map;Lkotlinx/html/TagConsumer;)V public fun getConsumer ()Lkotlinx/html/TagConsumer; @@ -2715,6 +2740,7 @@ public class kotlinx/html/SCRIPT : kotlinx/html/HTMLTag, kotlinx/html/FlowMetaDa public final fun getAsync ()Z public final fun getCharset ()Ljava/lang/String; public fun getConsumer ()Lkotlinx/html/TagConsumer; + public final fun getCrossorigin ()Lkotlinx/html/ScriptCrossorigin; public final fun getDefer ()Z public final fun getIntegrity ()Ljava/lang/String; public final fun getNonce ()Ljava/lang/String; @@ -2722,6 +2748,7 @@ public class kotlinx/html/SCRIPT : kotlinx/html/HTMLTag, kotlinx/html/FlowMetaDa public final fun getType ()Ljava/lang/String; public final fun setAsync (Z)V public final fun setCharset (Ljava/lang/String;)V + public final fun setCrossorigin (Lkotlinx/html/ScriptCrossorigin;)V public final fun setDefer (Z)V public final fun setIntegrity (Ljava/lang/String;)V public final fun setNonce (Ljava/lang/String;)V @@ -2821,6 +2848,15 @@ public class kotlinx/html/SVG : kotlinx/html/HTMLTag, kotlinx/html/HtmlBlockInli public fun getConsumer ()Lkotlinx/html/TagConsumer; } +public final class kotlinx/html/ScriptCrossorigin : java/lang/Enum, kotlinx/html/AttributeEnum { + public static final field anonymous Lkotlinx/html/ScriptCrossorigin; + public static final field useCredentials Lkotlinx/html/ScriptCrossorigin; + public static fun getEntries ()Lkotlin/enums/EnumEntries; + public fun getRealValue ()Ljava/lang/String; + public static fun valueOf (Ljava/lang/String;)Lkotlinx/html/ScriptCrossorigin; + public static fun values ()[Lkotlinx/html/ScriptCrossorigin; +} + public final class kotlinx/html/ScriptType { public static final field INSTANCE Lkotlinx/html/ScriptType; public final fun getTextEcmaScript ()Ljava/lang/String; @@ -3043,6 +3079,11 @@ public final class kotlinx/html/ThScope : java/lang/Enum, kotlinx/html/Attribute public static fun values ()[Lkotlinx/html/ThScope; } +public class kotlinx/html/U : kotlinx/html/HTMLTag, kotlinx/html/HtmlBlockInlineTag { + public fun (Ljava/util/Map;Lkotlinx/html/TagConsumer;)V + public fun getConsumer ()Lkotlinx/html/TagConsumer; +} + public class kotlinx/html/UL : kotlinx/html/HTMLTag, kotlinx/html/HtmlBlockTag { public fun (Ljava/util/Map;Lkotlinx/html/TagConsumer;)V public fun getConsumer ()Lkotlinx/html/TagConsumer; diff --git a/build.gradle.kts b/build.gradle.kts index db6e8983..5e231171 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -6,7 +6,7 @@ import kotlinx.html.js.packageJson * -PversionTag - works together with "branch-build" profile and overrides "-SNAPSHOT" suffix of the version. */ plugins { - kotlin("multiplatform") version "1.9.10" + kotlin("multiplatform") version "1.9.21" id("maven-publish") id("signing") } @@ -92,7 +92,13 @@ kotlin { } js(IR) { moduleName = project.name - browser() + browser { + testTask { + useKarma { + useChromeHeadless() + } + } + } mavenPublication { groupId = group as String diff --git a/buildSrc/src/main/kotlin/kotlinx/html/generate/humanizer.kt b/buildSrc/src/main/kotlin/kotlinx/html/generate/humanizer.kt index fc2c69c2..9deed078 100644 --- a/buildSrc/src/main/kotlin/kotlinx/html/generate/humanizer.kt +++ b/buildSrc/src/main/kotlin/kotlinx/html/generate/humanizer.kt @@ -53,7 +53,7 @@ fun humanizeJoin(parts: Iterable, separator: String): String { filteredParts.add(cutPart) } - return filteredParts.joinToString(separator = separator, transform = String::capitalize) + trailingParts.joinToString("", transform = String::capitalize) + return filteredParts.joinToString(separator = separator) { it.capitalize() } + trailingParts.joinToString("") { it.capitalize() } } private fun String.replaceMistakesAndUglyWords() : String = diff --git a/buildSrc/src/main/resources/html_5.xsd b/buildSrc/src/main/resources/html_5.xsd index 0a2b5bfd..52df735a 100644 --- a/buildSrc/src/main/resources/html_5.xsd +++ b/buildSrc/src/main/resources/html_5.xsd @@ -317,6 +317,7 @@ + @@ -842,6 +843,7 @@ + diff --git a/buildSrc/src/main/resources/htmltable.xml b/buildSrc/src/main/resources/htmltable.xml index 6a76727c..66224e5a 100644 --- a/buildSrc/src/main/resources/htmltable.xml +++ b/buildSrc/src/main/resources/htmltable.xml @@ -545,7 +545,7 @@ /> > C.ruby(classes : String? = null, crossinline * Strike-through text style */ @HtmlTagMarker +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 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 {})") diff --git a/src/commonMain/kotlin/generated/gen-tag-groups.kt b/src/commonMain/kotlin/generated/gen-tag-groups.kt index 43f15584..af2ab126 100644 --- a/src/commonMain/kotlin/generated/gen-tag-groups.kt +++ b/src/commonMain/kotlin/generated/gen-tag-groups.kt @@ -154,6 +154,12 @@ inline fun FlowContent.u(classes : String? = null, crossinline block : U.() -> U @HtmlTagMarker inline fun FlowContent.ul(classes : String? = null, crossinline block : UL.() -> Unit = {}) : Unit = UL(attributesMapOf("class", classes), consumer).visit(block) +/** + * Strike-through text style + */ +@HtmlTagMarker +inline fun FlowContent.s(classes : String? = null, crossinline block : S.() -> Unit = {}) : Unit = S(attributesMapOf("class", classes), consumer).visit(block) + /** * Document base URI */ diff --git a/src/commonMain/kotlin/generated/gen-tag-unions.kt b/src/commonMain/kotlin/generated/gen-tag-unions.kt index 60f37367..e494ad5f 100644 --- a/src/commonMain/kotlin/generated/gen-tag-unions.kt +++ b/src/commonMain/kotlin/generated/gen-tag-unions.kt @@ -299,7 +299,7 @@ inline fun FlowOrPhrasingContent.q(classes : String? = null, crossinline block : inline fun FlowOrPhrasingContent.ruby(classes : String? = null, crossinline block : RUBY.() -> Unit = {}) : Unit = RUBY(attributesMapOf("class", classes), consumer).visit(block) /** - * Strike-through text style + * Computer output text style */ @HtmlTagMarker inline fun FlowOrPhrasingContent.samp(classes : String? = null, crossinline block : SAMP.() -> Unit = {}) : Unit = SAMP(attributesMapOf("class", classes), consumer).visit(block) diff --git a/src/commonMain/kotlin/generated/gen-tags-s.kt b/src/commonMain/kotlin/generated/gen-tags-s.kt index 38b42cfc..55123e0b 100644 --- a/src/commonMain/kotlin/generated/gen-tags-s.kt +++ b/src/commonMain/kotlin/generated/gen-tags-s.kt @@ -9,6 +9,17 @@ import kotlinx.html.attributes.* This file was generated by module generate *******************************************************************************/ +@Suppress("unused") +open class S(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("s", consumer, initialAttributes, null, false, false), HtmlBlockInlineTag { + +} +val S.asFlowContent : FlowContent + get() = this + +val S.asPhrasingContent : PhrasingContent + get() = this + + @Suppress("unused") open class SAMP(initialAttributes : Map, override val consumer : TagConsumer<*>) : HTMLTag("samp", consumer, initialAttributes, null, true, false), HtmlBlockInlineTag { diff --git a/src/jsMain/kotlin/generated/gen-consumer-tags-js.kt b/src/jsMain/kotlin/generated/gen-consumer-tags-js.kt index 27e68213..f597719a 100644 --- a/src/jsMain/kotlin/generated/gen-consumer-tags-js.kt +++ b/src/jsMain/kotlin/generated/gen-consumer-tags-js.kt @@ -531,6 +531,12 @@ public inline fun TagConsumer.ruby(classes : String? = null, crossi * 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) @Deprecated("This tag doesn't support content or requires unsafe (try unsafe {})")