Attempts to initialize the WebAssembly module using the registered callback, synchronously
Parses a string into a DOM tree.
The first call to this function instantiates the WebAssembly module, which is quite expensive.
Subsequent calls reuse the WebAssembly module.
You can initialize the WebAssembly module beforehand by calling initializeWasm()
Sets the initializer callback function.
This can be used to override the default WebAssembly binary loading mechanism.
You might want to use this if you want to load the binary from a different location (e.g. CDN),
or you are using this library in the browser and require('fs')
is not available.
Sets the WebAssembly module.
This sets the underlying module that is used to interact with the HTML parser written in Rust. You might want to use this if you want to use a different WebAssembly module than the one shipped with this library, or if you want to instantiate the module beforehand.
Generated using TypeDoc
Attempts to initialize the WebAssembly module using the registered callback