3 ms·
Game engines are aware of the scripting languages embedded in them. Browsers are largely unaware of anything but Javascript. On top of that a lot of DOM manipu
by dmitriid 4y ago
Game engines are aware of the scripting languages embedded in them. Browsers are largely unaware of anything but Javascript.
On top of that a lot of DOM manipulation is smoke and mirrors. While the exposed DOM APIs may provide you with some object, internally it's likely to be a collection of weird things in a trench coat due to all the optimisations that browser engines are doing.
And no one in their right mind will give you raw access to the underlying C++ object for many reasons, security being number one. And 30 years of assumptions that browsers have about these objects being number two.