How can I access and change the model of a document object (DOM) using Webassembly (wasm)?

I know that webassembly (wasm) is still in its infancy, but I would like to know if I can use it to modify the DOM (just like I use Javascript to change the DOM).

Here is the official page:

Wasm mvp

+5
source share
2 answers

according to documents , DOM access is not supported (as of November 2016), but is planned for the future.

Manipulating the DOM will probably not be supported if everything happens according to the outline described on this page, since the links to the DOM will be opaque .

+3
source

The Wasm module can import and call JavaScript functions. A program that wants to manipulate the DOM, therefore, must have the right glue layer written in JavaScript. This is more or less the same model as for asm.js.

+3
source

Source: https://habr.com/ru/post/1259128/


All Articles