You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in order to load the web assets in ResourceFetchHandler.fetchSync correctly, we used RelativeURL.getAbsolteURL.
but it's seems wrong!
e.g.
we have tags <link rel="stylesheet" href="/static/jquery.css" type="text/css" /> in http://localhost/tree/
the correct way is http://localhost/static/jquery.css
but it's http://localhost/tree/static/jquery.css now.
The text was updated successfully, but these errors were encountered:
Associate with #508
I think this test unit is wrong, so the implementation is wrong too.
https://github.com/capricorn86/happy-dom/blob/f9d55eb1f31ee6538935d27c5173be5db11516f8/packages/happy-dom/test/location/RelativeURL.test.ts
why?
in order to load the web assets in
ResourceFetchHandler.fetchSync
correctly, we usedRelativeURL.getAbsolteURL
.but it's seems wrong!
e.g.
we have tags
<link rel="stylesheet" href="/static/jquery.css" type="text/css" />
inhttp://localhost/tree/
the correct way is
http://localhost/static/jquery.css
but it's
http://localhost/tree/static/jquery.css
now.The text was updated successfully, but these errors were encountered: