3 ms·
DOM manipulation isn't currently supported, for now you will need to provide a javascript layer between the C code and DOM. Its in the roadmap to create these i
by jjn2009 9y ago
DOM manipulation isn't currently supported, for now you will need to provide a javascript layer between the C code and DOM. Its in the roadmap to create these interfaces.
Web assembly is better suited for CPU intensive tasks which you would want to offload from javascript but keep on the client.
- zzo38computer 9y agoI think that DOM manipulation should not be a part of WebAssembly, although the other way around may make some sense, where for example, the "window.wasm" property might be a WebAssembly module for accessing the HTML DOM (otherwise the module is not included and the WebAssembly code is sandboxed and cannot access DOM). If the WebAssembly module is loaded directly using a "script" tag in a HTML document, then it can automatically include the HTML DOM module.
- jjn2009 9y agoIts inevitable that all of those who want to replace javascript will push facilities into the web assembly spec to remove javascript from the equation.