diff --git a/html/core/src/jsMain/kotlin/org/jetbrains/compose/web/elements/Elements.kt b/html/core/src/jsMain/kotlin/org/jetbrains/compose/web/elements/Elements.kt index 9140534a13..b2147ab411 100644 --- a/html/core/src/jsMain/kotlin/org/jetbrains/compose/web/elements/Elements.kt +++ b/html/core/src/jsMain/kotlin/org/jetbrains/compose/web/elements/Elements.kt @@ -119,6 +119,9 @@ private val Em: ElementBuilder = ElementBuilderImplementation("em") private val I: ElementBuilder = ElementBuilderImplementation("i") private val B: ElementBuilder = ElementBuilderImplementation("b") private val Small: ElementBuilder = ElementBuilderImplementation("small") +private val Sup: ElementBuilder = ElementBuilderImplementation("sup") +private val Sub: ElementBuilder = ElementBuilderImplementation("sub") +private val Blockquote: ElementBuilder = ElementBuilderImplementation("blockquote") private val Span: ElementBuilder = ElementBuilderImplementation("span") @@ -590,6 +593,24 @@ fun Small( content: ContentBuilder? = null ) = TagElement(elementBuilder = Small, applyAttrs = attrs, content = content) +@Composable +fun Sup( + attrs: AttrBuilderContext? = null, + content: ContentBuilder? = null +) = TagElement(elementBuilder = Sup, applyAttrs = attrs, content = content) + +@Composable +fun Sub( + attrs: AttrBuilderContext? = null, + content: ContentBuilder? = null +) = TagElement(elementBuilder = Sub, applyAttrs = attrs, content = content) + +@Composable +fun Blockquote( + attrs: AttrBuilderContext? = null, + content: ContentBuilder? = null +) = TagElement(elementBuilder = Blockquote, applyAttrs = attrs, content = content) + @Composable fun Span( attrs: AttrBuilderContext? = null, diff --git a/html/core/src/jsTest/kotlin/elements/ElementsTests.kt b/html/core/src/jsTest/kotlin/elements/ElementsTests.kt index d0b739dbce..d81a60962f 100644 --- a/html/core/src/jsTest/kotlin/elements/ElementsTests.kt +++ b/html/core/src/jsTest/kotlin/elements/ElementsTests.kt @@ -61,8 +61,11 @@ class ElementsTests { Pair({ Em() }, "EM"), Pair({ I() }, "I"), Pair({ B() }, "B"), - Pair({ Small() }, "SMALL"), + Pair({ Sup() }, "SUB"), + Pair({ Sub() }, "SUP"), + Pair({ Blockquote()}, "BLOCKQUOTE"), + Pair({ Span() }, "SPAN"), Pair({ Br() }, "BR"), Pair({ Ul() }, "UL"),