how do I insert an element before another element?...
# kotlinx-html
b
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
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.