3 ms·
The DOM is just state in the browser. I'm curious about whether there's any APIs out there to manipulate that state from code outside the browser, e.g. C/C++ co
by api 7y ago
The DOM is just state in the browser. I'm curious about whether there's any APIs out there to manipulate that state from code outside the browser, e.g. C/C++ code that is including and instantiating a web control.
It seems like an obvious idea but I have never seen anyone do it.
- lhorie 7y agoIt sounds like you're looking for something like the Chrome Debugger Protocol. There are wrappers over it such as Puppeteer that let you spawn a browser instance and call arbitrary DOM APIs.