Skip to content

Commit 2fc467f

Browse files
authored
[css-navigation-1] Add committed phase to navigation state (#14302)
This was erronously omitted.
1 parent f86e276 commit 2fc467f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

css-navigation-1/Overview.bs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ url: https://html.spec.whatwg.org/multipage/browsing-the-web.html#has-been-revea
3636
type: dfn; spec: html; text: has been revealed;
3737
url: https://html.spec.whatwg.org/multipage/browsing-the-web.html#ongoing-navigation
3838
type: dfn; spec: html; text: ongoing navigation;
39+
url: https://html.spec.whatwg.org/multipage/nav-history-apis.html#concept-navigateevent-interception-state
40+
type: dfn; spec: html; text: interception state;
3941
url: https://drafts.csswg.org/css-view-transitions-1/#capture-the-image
4042
type: dfn; spec: css-view-transitions-1; text: capture the image;
4143
</pre>
@@ -724,6 +726,8 @@ To get the <dfn>current navigation state</dfn> of a {{Document}} |document|:
724726

725727
1. If |navigateEvent| is null, return null.
726728

729+
1. If |navigateEvent|'s [=interception state=] is `"committed"` or `"scrolled"`, set |phase| to `committed`.
730+
727731
1. Return a new [=navigation state=] whose
728732
[=navigation state/old URL=] is |document|'s [=Document/URL=],
729733
[=navigation state/new URL=] is |navigateEvent|'s {{NavigateEvent/destination}}'s {{NavigationDestination/url}},
@@ -750,6 +754,7 @@ To get the <dfn>current navigation URL</dfn> given a {{Document}} |document| and
750754

751755
: ''at''
752756
:: |state|'s [=navigation state/new URL=] if |state|'s [=navigation state/phase=] is `committed`; Otherwise |state|'s [=navigation state/old URL=].
757+
753758
</dl>
754759

755760
To get the <dfn>current navigation type</dfn> of a [=/document=] |document|:

0 commit comments

Comments
 (0)