Is there any way to control dom tree with webassem...
# kotlin-native
y
Is there any way to control dom tree with webassembly? I only found examples with canvas.
r
That's not a Kotlin question. You could try in #random, but google/stackoverflow would probably be better.
s
If his K/N output target is web assembly then is it relevant?
r
Possibly, if the question is "How to do this in Kotlin", but it isn't in this case. This question (unless I'm reading it wrong) is about how web assembly works.
y
@Ruckus Oh sorry, I meant I want to do this in Kotlin/Native with wasm32.
I could get element by document.getElementById() but I cannot edit things such as attribute or content
o
To do that, more bindings around DOM APIs shall be implemented, like current canvas. There’s WIP PR addressing that, https://github.com/JetBrains/kotlin-native/pull/1656 you may help reviving it.