kotlinx.html
kotlinx.html copied to clipboard
Kotlin DSL for HTML
I currently use the following hack to retrieve the underlying HtmlElement: ``` div { val div = getUnderlyingHtmlElement() div.asDynamic().someVar = xyZ } ``` where the function is defined as follows:...
TD extends HtmBlockTag while TH extends HtmlInlineTag. Is that correct?
Are there plans to support Kotlin/mingwX64 (and iosArm64, linuxX64, etc)? It shouldn't be too much hassle to add it.
I was getting stuck with nothing being output when using this block: ``` label("bmd-label-floating") { +labelName htmlFor = name } ``` Then I realised that when streaming a response all...
## Reproduction Steps * Have a Gradle project with Kotlin (JVM), Ktor and ktor-html-builder / kotlinx-html open in IntelliJ IDEA * Use `call.respondHtml()` to build the response using HTML DSL,...
Initial report - https://discuss.kotlinlang.org/t/custom-components/17731/5 Code: ```kotlin import kotlinx.html.* import kotlinx.html.dom.append import kotlin.browser.document @ExperimentalStdlibApi fun main() { document.body!!.append { p { testButton() } } } @HtmlTagMarker @ExperimentalStdlibApi fun FlowOrInteractiveOrPhrasingContent.testButton() { TestButton(...
SVG tags
None of the SVG tags appear to be present except for the root tag. For example, there is no or tag
(needing the isue for an incoming pull request) https://developer.mozilla.org/de/docs/Web/HTML/Element/picture
There is a kotlinx-html-common, kotlin-html and other wierd variations that make managing your packages on first go a little confusing. These docs don't indicate that kotlinx-html-common exists unless I am...
I'm confused, this could be an issue or may not be; only the experts will know. It looks to me like KotlinJS code, even in multiplatform, needs to be in...