Closed hugmanrique closed 6 years ago
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
:memo: Please visit https://cla.developers.google.com/ to sign.
Once you've signed (or fixed any issues), please reply here (e.g. I signed it!
) and we'll verify it.
I signed it!
CLAs look good, thanks!
@developit any updates?
Hiya! Sorry about that - this looks great!
Some libraries such as
react-router
orreach-router
depend on the current window URL (returned bywindow.location
,location.URL
...) to determine which route to render.This PR adds a
documentUrl
option which is passed to the JSDOMurl
option which has the following behavior according to their docs:url
sets the value returned by window.location, document.URL, and document.documentURI, and affects things like resolution of relative URLs within the document and the same-origin restrictions and referrer used while fetching subresources. It defaults to "about:blank".The default value is
undefined
which will tell JSDOM to use the defaultabout:blank
which you cannot change inside the JSDOM instance.@developit