Agreed. Headless browser testing is a great example of a case where an embeddable browser engine "as a lib" would be immensely helpful.
JSDom in the Nodejs world offers a peak into what that might look like - though it is lacking a lot of browser functionality making it impractical for most use cases.
JSDom in the Nodejs world offers a peak into what that might look like - though it is lacking a lot of browser functionality making it impractical for most use cases.