happy-dom icon indicating copy to clipboard operation
happy-dom copied to clipboard

load scripts from web error

Open Mas0nShi opened this issue 2 years ago • 3 comments

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!

Mas0nShi avatar Jun 16 '22 13:06 Mas0nShi

refer: https://stackoverflow.com/questions/9161769/url-without-httphttps

Mas0nShi avatar Jun 16 '22 15:06 Mas0nShi

need XMLHttpRequest to support ajax in jQuery

Mas0nShi avatar Jun 16 '22 16:06 Mas0nShi

i try to implement xmlhttprequests now. 🙄

Mas0nShi avatar Jun 17 '22 05:06 Mas0nShi