4 ms·
Is it even on the roadmap? WASM does not have access to DOM at all.
by yoz-y 7y ago
Is it even on the roadmap? WASM does not have access to DOM at all.
- k__ 7y agoI think it is.
- kbumsik 7y agoNo they are not. Standard DOM API is not i their roadmap. There is no point of doing it when WASM has to be loaded by JS anyway. Currently DOM libraries using WASM are implemented by importing JS wrapper functions.
- devit 7y agoThe interface types proposal will allow to call DOM APIs from WebAssembly directly [https://github.com/WebAssembly/interface-types/blob/master/proposals/interface-types/Explainer.md https://github.com/WebAssembly/interface-types/blob/master/p...] The point of doing it is of course performance.
- k__ 7y agoThat's what I thought. Thanks.
- tyingq 7y ago>Standard DOM API is not in their roadmap. It is... "To realize the high-level goals of (1) integrating well with the existing Web platform and (2) supporting languages other than C++, WebAssembly needs to be able to...reference DOM and other Web API objects directly from WebAssembly code...call Web APIs (passing primitives or DOM/GC/Web API objects) directly from WebAssembly without calling through JavaScript..." https://github.com/WebAssembly/proposals/issues/16 https://github.com/WebAssembly/proposals/issues/16