added a (disabled) test case to try out using the kotlin.browser.document property from generated JS
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package test.browser
|
||||
|
||||
import kotlin.browser.document
|
||||
|
||||
fun foo() {
|
||||
val element = document.getElementById("foo")
|
||||
if (element != null) {
|
||||
element.appendChild(document.createTextNode("Some Dynamically Created Contenet!!!"))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user