Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Navigation API: Spec does not accurately describe firing popstate event is intercepted and source is a fragment navigation #11082

@atscott

Description

@atscott

What is the issue with the HTML Standard?

https://html.spec.whatwg.org/multipage/browsing-the-web.html#scroll-to-fragid

After firing the navigate event in step 4, the spec indicates that if it was not intercepted, then the popstate event gets fired through the "Update document for history step application" in step 14.

But if someone did intercept the event, then the state update gets handled by the navigation API's commit behavior which is explicitly not done in https://html.spec.whatwg.org/multipage/browsing-the-web.html#url-and-history-update-steps (the steps intercept uses to update the URL).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions