createElement

inline fun Document.createElement(name: String, noinline init: Element.() -> Unit): Element(source)

Deprecated

Warning since 1.4

Error since 1.6

This API is moved to another package, use 'kotlinx.dom.createElement' instead.

Replace with

import kotlinx.dom.createElement
this.createElement(name, init)

Creates a new element with the specified name.

The element is initialized with the specified init function.

Since Kotlin

1.1