kotlinx.html icon indicating copy to clipboard operation
kotlinx.html copied to clipboard

Kotlin DSL for HTML

Results 110 kotlinx.html issues
Sort by recently updated
recently updated
newest added

Currently, you have to do: ``` kotlin checkBoxInput(classes = "form-check-input", name = "myName") { id = "myId" value = "myValue" } label(classes="myclass") { htmlFor="myId" +"Check me" } ``` However, a...

According to the HTML spec (https://html.spec.whatwg.org/#the-dt-element), the `dt` element is "Categories: None" and "Content model: Flow content, but with no header, footer, sectioning content, or heading content descendants." However, [in...

The HTML `summary` tag must only contain > Phrasing content or one element of Heading content https://developer.mozilla.org/en-US/docs/Web/HTML/Element/summary#technical_summary The HTML DSL right now allows nesting arbitrary flow content and one can...

It looks like the DSL is missing the [srcSet attribute](https://www.w3schools.com/TAgs/att_source_srcset.asp) of the source tag

The block in this method is called exactly once: `fun Node.append(block: TagConsumer.() -> Unit): List` It would be helpful to generate the contract{} for this method. This allowed assignments of...

I want to display a `Map` in an HTML page. ```kotlin import kotlinx.browser.document import kotlinx.html.* import kotlinx.html.dom.* fun main() { document.body!!.append.div { pre { code { unsafe { raw(""" val...

Got the following error trying to get the `value` of an `input`: ``` message: "Attribute value is not yet defined for tag input" ``` Code: ```kotlin import kotlinx.browser.document import kotlinx.html.div...

This added a read me on how to integrate kotlinx_html to http4k(A kotlin lightweight library for creating webapps). This process will also work for ktor(A kotlin library for creating web...

For the same reason as #283, TBODY should be a FlowContent. The strict typing makes it hard to flexibly generate fragments. HTMX style pages are where this framework really shines...