Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hashchange event on body element not handled #601

Open
iridial opened this issue Jan 8, 2025 · 0 comments
Open

hashchange event on body element not handled #601

iridial opened this issue Jan 8, 2025 · 0 comments

Comments

@iridial
Copy link

iridial commented Jan 8, 2025

Hello, I'm trying to handle the hashchange event of the body, this event is present in the list of 'standard HTML DOM events', and on Mozilla docs is stated:

In addition to the Window interface, the event handler property onhashchange is also available on the following targets: HTMLBodyElement ...

So I tried to use <body _="on hashchange log 'hash change'"> however there is no output in the console when navigating anchors.
With the standard definition <body onhashchange="console.log(this)"> outputs to the console.

Am I missing something or it's just not supported?

using version 0.9.13

reference:
https://www.w3schools.com/jsref/dom_obj_event.asp
https://developer.mozilla.org/en-US/docs/Web/API/Window/hashchange_event

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant