question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

does not have access to window.location.hash changing

See original GitHub issue
it('should trigger window.location to be the value of the hash', function() {
    window.location.hash = home;
    console.log(window.location.hash); // (nothing)
});

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rstacruzcommented, Apr 22, 2016

Okay, I just tried it out and it doesn’t seem to work at all, # or not…

image

This issue might shed some light on the matter: https://github.com/tmpvar/jsdom/issues/1300

0reactions
rstacruzcommented, Apr 22, 2016

Let me also add that you can raise this concern over at tmpvar/jsdom.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I update window.location.hash without jumping the ...
However, when I update the hash, the browser jumps to the location. I guess this is expected behaviour. My question is: how can...
Read more >
location.hash - Web APIs | MDN
The hash property of the Location interface returns a string containing a '#' followed by the fragment identifier of the URL — the...
Read more >
What is window.location.hash in JavaScript? - Educative.io
The window.location.hash returns a string that contains a # along with the fragment identifier of the URL. The fragment identifier of the URL...
Read more >
window.location Cheatsheet | SamanthaMing.com
So host will include the port number, whereas hostname will only return the host name. # How to change URL properties. Not only...
Read more >
Location hash Property - W3Schools
Window location.hash ... Get the anchor part of the URL: ... When location.hash is used to set the anchor part, do not include...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found