3 ms·
>> tDOM for parsing and creating XML and HTML content How is tDOM supposed to work if WebAssembly doesn't have access to the DOM?
by themihai 9y ago
>> tDOM for parsing and creating XML and HTML content
How is tDOM supposed to work if WebAssembly doesn't have access to the DOM?
- pwg 9y agotDOM is an XML parser based on expat that provides both a SAX and a DOM parser. It parses into its own DOM that one can then run XPATH expressions against or manipulate as one sees fit with tDOM's interface methods. Unfortunately the DOM for tDOM is not the web browser DOM that Javascript interfaces with. Same term, so very confusing, but not the same DOM's.
- ecky-l 9y agotDOM is just for parsing and generating XML or, more interrestingly, HTML. Once you have that, you can use the ::wacl::dom command to inject it into the browser dom. Or use the wacl::dom command to get HTML which then can be parsed via tDOM.