diff --git a/libraries/stdlib/js/src/kotlin/dom/Builders.kt b/libraries/stdlib/js/src/kotlin/dom/Builders.kt index 20944865cb3..04487f47928 100644 --- a/libraries/stdlib/js/src/kotlin/dom/Builders.kt +++ b/libraries/stdlib/js/src/kotlin/dom/Builders.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2018 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -14,7 +14,7 @@ import kotlinx.dom.createElement as newCreateElement /** * Creates a new element with the specified [name]. * - * The element is initialized with the speicifed [init] function. + * The element is initialized with the specified [init] function. */ @LowPriorityInOverloadResolution @Deprecated( @@ -26,7 +26,7 @@ public inline fun Document.createElement(name: String, noinline init: Element.() /** * Appends a newly created element with the specified [name] to this element. * - * The element is initialized with the speicifed [init] function. + * The element is initialized with the specified [init] function. */ @LowPriorityInOverloadResolution @Deprecated( diff --git a/libraries/stdlib/js/src/kotlinx/dom/Builders.kt b/libraries/stdlib/js/src/kotlinx/dom/Builders.kt index 24a75f02b43..a194035f732 100644 --- a/libraries/stdlib/js/src/kotlinx/dom/Builders.kt +++ b/libraries/stdlib/js/src/kotlinx/dom/Builders.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2018 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -10,14 +10,14 @@ import org.w3c.dom.* /** * Creates a new element with the specified [name]. * - * The element is initialized with the speicifed [init] function. + * The element is initialized with the specified [init] function. */ public fun Document.createElement(name: String, init: Element.() -> Unit): Element = createElement(name).apply(init) /** * Appends a newly created element with the specified [name] to this element. * - * The element is initialized with the speicifed [init] function. + * The element is initialized with the specified [init] function. */ public fun Element.appendElement(name: String, init: Element.() -> Unit): Element = ownerDocument!!.createElement(name, init).also { appendChild(it) }