Comment by jech
> The DOM has been designed as a JS API
My understanding is that it originated as a straight binding to Netscape Navigator's C++ API, so it's actually originally a C++ API.
> The DOM has been designed as a JS API
My understanding is that it originated as a straight binding to Netscape Navigator's C++ API, so it's actually originally a C++ API.
Calling an "idiomatic" C++ API from WASM would also require a (COM like) shim though since C++ has no standardized ABI. E.g. as soon as your API uses things like std::string it already gets hairy.