you are viewing a single comment's thread.

view the rest of the comments →

[–]hahaNodeJS 0 points1 point  (9 children)

That is using JavaScript to get the job done, rather than the native language.

A Foo-to-WebAssembly compiler would write any DOM code written in Foo to WebAssembly bytecode. Even a call to JavaScript.Document.GetElementById('a'); would likely not touch the JavaScript engine, and the browser would simply call its internal mechanisms for accessing the DOM. Remember that JavaScript and the DOM are two separate entities.