By default, a WebAssembly module has no access to any host APIs — particularized for the web platform, a running module will have no way of accessing the DOM by default.
When instantiating a module, it can use module imports [1], which can be used to access the DOM through JavaScript calls.