createElement

@DeprecatedSinceKotlin(warningSince = "1.4")
inline fun Document.createElement(name: String, noinline init: Element.() -> Unit): Element

Creates a new element with the specified name.

The element is initialized with the specified init function.