happy-dom
happy-dom copied to clipboard
load scripts from web error
similar with #401
load page from web https://www.geetest.com/demo/test.html
https://github.com/capricorn86/happy-dom/blob/f9d55eb1f31ee6538935d27c5173be5db11516f8/packages/happy-dom/src/nodes/html-script-element/ScriptUtility.ts#L19
the src: //apps.bdimg.com/libs/jquery/1.9.1/jquery.js
then fetch is used directly, we need parse url first!
refer: https://stackoverflow.com/questions/9161769/url-without-httphttps
need XMLHttpRequest to support ajax in jQuery
i try to implement xmlhttprequests now. 🙄