-
Notifications
You must be signed in to change notification settings - Fork 3k
Let the popstate and hashchange events not bubble #3737
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
Conversation
Out of Chrome, Edge, Firefox and Safari, only Firefox sets bubbles to true for these events. Since they are dispatched on the window object, that is not particularly meaningful, so match the 3/4 majority. Tests: web-platform-tests/wpt#11355
source
Outdated
| <var>new URL</var>.</p></li> | ||
| context</span>'s <code>Window</code> object, using <code>HashChangeEvent</code>, with the | ||
| <code data-x="dom-HashChangeEvent-oldURL">oldURL</code> attribute initialized to <var>old | ||
| URL</var>, and the <code data-x="dom-HashChangeEvent-newURL">newURL</code> attribute |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for a comma here before the and since it's only joining two things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed!
|
@bzbarsky @smaug---- any concerns? |
|
Should be fine. If we have some internal code which depends on this, it is broken anyhow, but I don't expect there to be. |
|
Yeah, this seems fine. |
|
@foolip can you file the necessary bugs? |
This brings the `html/browsers/browsing-the-web/scroll-to-fragid/004.html` test up to date with the spec change made here: whatwg/html#3737. Other tests were changed to reflect this in #11355.
…a=testonly Automatic update from web-platform-testsHTML: update hashchange/popstate event tests For whatwg/html#3737. -- wpt-commits: 81303e16ee14b318d07c9aeb56e16e7499647b7a wpt-pr: 11355
…a=testonly Automatic update from web-platform-testsHTML: update hashchange/popstate event tests For whatwg/html#3737. -- wpt-commits: 81303e16ee14b318d07c9aeb56e16e7499647b7a wpt-pr: 11355
This brings the `html/browsers/browsing-the-web/scroll-to-fragid/004.html` test up to date with the spec change made here: whatwg/html#3737. Other tests were changed to reflect this in web-platform-tests#11355.
…a=testonly Automatic update from web-platform-testsHTML: update hashchange/popstate event tests For whatwg/html#3737. -- wpt-commits: 81303e16ee14b318d07c9aeb56e16e7499647b7a wpt-pr: 11355
…a=testonly Automatic update from web-platform-testsHTML: update hashchange/popstate event tests For whatwg/html#3737. -- wpt-commits: 81303e16ee14b318d07c9aeb56e16e7499647b7a wpt-pr: 11355
…a=testonly Automatic update from web-platform-testsThe hashchange event should not bubble This brings the `html/browsers/browsing-the-web/scroll-to-fragid/004.html` test up to date with the spec change made here: whatwg/html#3737. Other tests were changed to reflect this in web-platform-tests/wpt#11355. -- wpt-commits: 3aaef8d2cac4ab2044a1ba01895f2e028b91d996 wpt-pr: 11672
…a=testonly Automatic update from web-platform-testsHTML: update hashchange/popstate event tests For whatwg/html#3737. -- wpt-commits: 81303e16ee14b318d07c9aeb56e16e7499647b7a wpt-pr: 11355 UltraBlame original commit: 3f8d8f2c37e160fc95ce891620a10f6b832b8da6
…a=testonly Automatic update from web-platform-testsHTML: update hashchange/popstate event tests For whatwg/html#3737. -- wpt-commits: 81303e16ee14b318d07c9aeb56e16e7499647b7a wpt-pr: 11355 UltraBlame original commit: d97405360c9af7a51a24881e2664424f6b36b003
…a=testonly Automatic update from web-platform-testsThe hashchange event should not bubble This brings the `html/browsers/browsing-the-web/scroll-to-fragid/004.html` test up to date with the spec change made here: whatwg/html#3737. Other tests were changed to reflect this in web-platform-tests/wpt#11355. -- wpt-commits: 3aaef8d2cac4ab2044a1ba01895f2e028b91d996 wpt-pr: 11672 UltraBlame original commit: ae0bb1f940e178bc39c17224d1fa264af2deacb4
…a=testonly Automatic update from web-platform-testsHTML: update hashchange/popstate event tests For whatwg/html#3737. -- wpt-commits: 81303e16ee14b318d07c9aeb56e16e7499647b7a wpt-pr: 11355 UltraBlame original commit: 3f8d8f2c37e160fc95ce891620a10f6b832b8da6
…a=testonly Automatic update from web-platform-testsHTML: update hashchange/popstate event tests For whatwg/html#3737. -- wpt-commits: 81303e16ee14b318d07c9aeb56e16e7499647b7a wpt-pr: 11355 UltraBlame original commit: d97405360c9af7a51a24881e2664424f6b36b003
…a=testonly Automatic update from web-platform-testsThe hashchange event should not bubble This brings the `html/browsers/browsing-the-web/scroll-to-fragid/004.html` test up to date with the spec change made here: whatwg/html#3737. Other tests were changed to reflect this in web-platform-tests/wpt#11355. -- wpt-commits: 3aaef8d2cac4ab2044a1ba01895f2e028b91d996 wpt-pr: 11672 UltraBlame original commit: ae0bb1f940e178bc39c17224d1fa264af2deacb4
…a=testonly Automatic update from web-platform-testsHTML: update hashchange/popstate event tests For whatwg/html#3737. -- wpt-commits: 81303e16ee14b318d07c9aeb56e16e7499647b7a wpt-pr: 11355 UltraBlame original commit: 3f8d8f2c37e160fc95ce891620a10f6b832b8da6
…a=testonly Automatic update from web-platform-testsHTML: update hashchange/popstate event tests For whatwg/html#3737. -- wpt-commits: 81303e16ee14b318d07c9aeb56e16e7499647b7a wpt-pr: 11355 UltraBlame original commit: d97405360c9af7a51a24881e2664424f6b36b003
…a=testonly Automatic update from web-platform-testsThe hashchange event should not bubble This brings the `html/browsers/browsing-the-web/scroll-to-fragid/004.html` test up to date with the spec change made here: whatwg/html#3737. Other tests were changed to reflect this in web-platform-tests/wpt#11355. -- wpt-commits: 3aaef8d2cac4ab2044a1ba01895f2e028b91d996 wpt-pr: 11672 UltraBlame original commit: ae0bb1f940e178bc39c17224d1fa264af2deacb4
…a=testonly Automatic update from web-platform-testsHTML: update hashchange/popstate event tests For whatwg/html#3737. -- wpt-commits: 81303e16ee14b318d07c9aeb56e16e7499647b7a wpt-pr: 11355
…a=testonly Automatic update from web-platform-testsHTML: update hashchange/popstate event tests For whatwg/html#3737. -- wpt-commits: 81303e16ee14b318d07c9aeb56e16e7499647b7a wpt-pr: 11355
…a=testonly Automatic update from web-platform-testsThe hashchange event should not bubble This brings the `html/browsers/browsing-the-web/scroll-to-fragid/004.html` test up to date with the spec change made here: whatwg/html#3737. Other tests were changed to reflect this in web-platform-tests/wpt#11355. -- wpt-commits: 3aaef8d2cac4ab2044a1ba01895f2e028b91d996 wpt-pr: 11672
Out of Chrome, Edge, Firefox and Safari, only Firefox sets bubbles to
true for these events. Since they are dispatched on the window object,
that is not particularly meaningful, so match the 3/4 majority.
Tests: web-platform-tests/wpt#11355
/browsing-the-web.html ( diff )