Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add <u></u> tag #241

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions buildSrc/src/main/resources/html_5.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@
<xsd:element ref="textarea"/>
<xsd:element ref="time"/>

<xsd:element ref="u"/>
<xsd:element ref="ul"/>

<xsd:element ref="var"/>
Expand Down Expand Up @@ -737,6 +738,8 @@
</xsd:complexType>
</xsd:element>

<xsd:element name="u" type="simplePhrasingContentElement"/>

<xsd:element name="ul">
<xsd:complexType>
<xsd:choice>
Expand Down
6 changes: 6 additions & 0 deletions src/commonMain/kotlin/generated/gen-consumer-tags.kt
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,12 @@ inline fun <T, C : TagConsumer<T>> C.title(crossinline block : TITLE.() -> Unit
@HtmlTagMarker
inline fun <T, C : TagConsumer<T>> C.tr(classes : String? = null, crossinline block : TR.() -> Unit = {}) : T = TR(attributesMapOf("class", classes), this).visitAndFinalize(this, block)

/**
* Underlined text style
*/
@HtmlTagMarker
inline fun <T, C : TagConsumer<T>> C.u(classes : String? = null, crossinline block : U.() -> Unit = {}) : T = U(attributesMapOf("class", classes), this).visitAndFinalize(this, block)

/**
* Unordered list
*/
Expand Down
6 changes: 6 additions & 0 deletions src/commonMain/kotlin/generated/gen-tag-groups.kt
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ inline fun FlowContent.summary(classes : String? = null, crossinline block : SUM
@HtmlTagMarker
inline fun FlowContent.table(classes : String? = null, crossinline block : TABLE.() -> Unit = {}) : Unit = TABLE(attributesMapOf("class", classes), consumer).visit(block)

/**
* Underlined text style
*/
@HtmlTagMarker
inline fun FlowContent.u(classes : String? = null, crossinline block : U.() -> Unit = {}) : Unit = U(attributesMapOf("class", classes), consumer).visit(block)

/**
* Unordered list
*/
Expand Down
11 changes: 11 additions & 0 deletions src/commonMain/kotlin/generated/gen-tags-u.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ import kotlinx.html.attributes.*
This file was generated by module generate
*******************************************************************************/

@Suppress("unused")
open class U(initialAttributes : Map<String, String>, override val consumer : TagConsumer<*>) : HTMLTag("u", consumer, initialAttributes, null, true, false), HtmlBlockInlineTag {

}
val U.asFlowContent : FlowContent
get() = this

val U.asPhrasingContent : PhrasingContent
get() = this


@Suppress("unused")
open class UL(initialAttributes : Map<String, String>, override val consumer : TagConsumer<*>) : HTMLTag("ul", consumer, initialAttributes, null, false, false), HtmlBlockTag {

Expand Down
6 changes: 6 additions & 0 deletions src/jsMain/kotlin/generated/gen-consumer-tags-js.kt
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,12 @@ public inline fun TagConsumer<HTMLElement>.title(crossinline block : TITLE.() ->
@HtmlTagMarker
public inline fun TagConsumer<HTMLElement>.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<HTMLElement>.u(classes : String? = null, crossinline block : U.() -> Unit = {}) : HTMLElement = U(attributesMapOf("class", classes), this).visitAndFinalize(this, block)

/**
* Unordered list
*/
Expand Down