mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
a8233232f5
Update FakeNavigation and Navigation API type definitions to match the latest WHATWG HTML specification (https://html.spec.whatwg.org/multipage/nav-history-apis.html): - Add NavigationPrecommitController.addHandler() and support dynamic post-commit handler registration (https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigationprecommitcontroller-addhandler). - Include precommitHandler directly in NavigationInterceptOptions (https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigateevent-intercept). - Add hasUAVisualTransition and sourceElement properties to NavigateEvent (https://html.spec.whatwg.org/multipage/nav-history-apis.html#the-navigateevent-interface). - Fix FakeNavigationHistoryEntry dispose event name from 'disposed' to 'dispose' and implement ondispose (https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigationhistoryentry-ondispose). - Implement Navigation.prototype.updateCurrentEntry (https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigation-updatecurrententry). - Implement Navigation.prototype.reload (https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-navigation-reload) and share "performing a non-traverse navigation" (https://html.spec.whatwg.org/multipage/nav-history-apis.html#performing-a-non-traverse-navigation) logic with navigate(). - Implement standard event handler IDL properties (onnavigate, onnavigatesuccess, onnavigateerror, oncurrententrychange). - Update internal specification comments and links from legacy PR draft URLs to official WHATWG multipage URLs.