how do I insert an element before another element? .prepend adds a child element to the node, not a node before the element
regarding the dom api, this is what I need in a DSL context: .insertAdjacentElement("beforeBegin", element)
✅ 1
c
Cies
04/07/2025, 1:37 PM
We never do DOM manipulation with Kotlinx.html. We only build HTML with Kotlinx.html.
It's more like JSX or server-side templates than like jQuery.