Hacker News new | ask | show | jobs
by yoz-y 2365 days ago
Is it even on the roadmap? WASM does not have access to DOM at all.
1 comments

I think it is.
No 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.

The interface types proposal will allow to call DOM APIs from WebAssembly directly [https://github.com/WebAssembly/interface-types/blob/master/p...]

The point of doing it is of course performance.

That's what I thought. Thanks.
>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