You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ed/algorithms/html.json
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -26010,10 +26010,10 @@
26010
26010
"html": "<p>Let <var>errorInfo</var> be the result of <a href=\"https://html.spec.whatwg.org/multipage/webappapis.html#extract-error\" id=\"ongoing-navigation-tracking:extract-error\">extracting error\n information</a> from <var>error</var>.</p>"
26011
26011
},
26012
26012
{
26013
-
"html": "<p><a href=\"https://dom.spec.whatwg.org/#concept-event-fire\" id=\"ongoing-navigation-tracking:concept-event-fire\" data-x-internal=\"concept-event-fire\">Fire an event</a> named <code id=\"ongoing-navigation-tracking:event-navigateerror-2\"><a href=\"https://html.spec.whatwg.org/multipage/indices.html#event-navigateerror\">navigateerror</a></code> at <var>navigation</var> using\n <code id=\"ongoing-navigation-tracking:errorevent\"><a href=\"https://html.spec.whatwg.org/multipage/webappapis.html#errorevent\">ErrorEvent</a></code>, with additional attributes initialized according to\n <var>errorInfo</var>.</p>"
26013
+
"html": "<p>If <var>navigation</var>'s <a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#ongoing-api-method-tracker\" id=\"ongoing-navigation-tracking:ongoing-api-method-tracker-6\">ongoing API method tracker</a> is non-null, then\n <a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#reject-the-finished-promise\" id=\"ongoing-navigation-tracking:reject-the-finished-promise\">reject the finished promise</a> for <var>apiMethodTracker</var> with\n <var>error</var>.</p>"
26014
26014
},
26015
26015
{
26016
-
"html": "<p>If <var>navigation</var>'s <a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#ongoing-api-method-tracker\" id=\"ongoing-navigation-tracking:ongoing-api-method-tracker-6\">ongoing API method tracker</a> is non-null, then\n <a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#reject-the-finished-promise\" id=\"ongoing-navigation-tracking:reject-the-finished-promise\">reject the finished promise</a> for <var>apiMethodTracker</var> with\n <var>error</var>.</p>"
26016
+
"html": "<p><a href=\"https://dom.spec.whatwg.org/#concept-event-fire\" id=\"ongoing-navigation-tracking:concept-event-fire\" data-x-internal=\"concept-event-fire\">Fire an event</a> named <code id=\"ongoing-navigation-tracking:event-navigateerror-2\"><a href=\"https://html.spec.whatwg.org/multipage/indices.html#event-navigateerror\">navigateerror</a></code> at <var>navigation</var> using\n <code id=\"ongoing-navigation-tracking:errorevent\"><a href=\"https://html.spec.whatwg.org/multipage/webappapis.html#errorevent\">ErrorEvent</a></code>, with additional attributes initialized according to\n <var>errorInfo</var>.</p>"
26017
26017
},
26018
26018
{
26019
26019
"html": "If <var>navigation</var>'s <a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#concept-navigation-transition\" id=\"ongoing-navigation-tracking:concept-navigation-transition\">transition</a> is\n not null, then:",
"html": "<p><a href=\"https://dom.spec.whatwg.org/#concept-event-fire\" id=\"navigate-event-firing:concept-event-fire\" data-x-internal=\"concept-event-fire\">Fire an event</a> named <code id=\"navigate-event-firing:event-navigatesuccess-2\"><a href=\"https://html.spec.whatwg.org/multipage/indices.html#event-navigatesuccess\">navigatesuccess</a></code> at <var>navigation</var>.</p>"
26528
+
"html": "<p>If <var>apiMethodTracker</var> is non-null, then <a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#resolve-the-finished-promise\" id=\"navigate-event-firing:resolve-the-finished-promise\">resolve the finished\n promise</a> for <var>apiMethodTracker</var>.</p>"
26529
26529
},
26530
26530
{
26531
-
"html": "<p>If <var>apiMethodTracker</var> is non-null, then <a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#resolve-the-finished-promise\" id=\"navigate-event-firing:resolve-the-finished-promise\">resolve the finished\n promise</a> for <var>apiMethodTracker</var>.</p>"
26531
+
"html": "<p><a href=\"https://dom.spec.whatwg.org/#concept-event-fire\" id=\"navigate-event-firing:concept-event-fire\" data-x-internal=\"concept-event-fire\">Fire an event</a> named <code id=\"navigate-event-firing:event-navigatesuccess-2\"><a href=\"https://html.spec.whatwg.org/multipage/indices.html#event-navigatesuccess\">navigatesuccess</a></code> at <var>navigation</var>.</p>"
26532
26532
},
26533
26533
{
26534
26534
"html": "<p>If <var>navigation</var>'s <a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#concept-navigation-transition\" id=\"navigate-event-firing:concept-navigation-transition-3\">transition</a> is not null, then resolve\n <var>navigation</var>'s <a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#concept-navigation-transition\" id=\"navigate-event-firing:concept-navigation-transition-4\">transition</a>'s\n <a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#concept-navigationtransition-finished\" id=\"navigate-event-firing:concept-navigationtransition-finished-3\">finished promise</a> with\n undefined.</p>"
@@ -26561,10 +26561,10 @@
26561
26561
"html": "<p>Let <var>errorInfo</var> be the result of <a href=\"https://html.spec.whatwg.org/multipage/webappapis.html#extract-error\" id=\"navigate-event-firing:extract-error\">extracting error\n information</a> from <var>rejectionReason</var>.</p>"
26562
26562
},
26563
26563
{
26564
-
"html": "<p><a href=\"https://dom.spec.whatwg.org/#concept-event-fire\" id=\"navigate-event-firing:concept-event-fire-2\" data-x-internal=\"concept-event-fire\">Fire an event</a> named <code id=\"navigate-event-firing:event-navigateerror-4\"><a href=\"https://html.spec.whatwg.org/multipage/indices.html#event-navigateerror\">navigateerror</a></code> at <var>navigation</var> using\n <code id=\"navigate-event-firing:errorevent\"><a href=\"https://html.spec.whatwg.org/multipage/webappapis.html#errorevent\">ErrorEvent</a></code>, with additional attributes initialized according to\n <var>errorInfo</var>.</p>"
26564
+
"html": "<p>If <var>apiMethodTracker</var> is non-null, then <a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#reject-the-finished-promise\" id=\"navigate-event-firing:reject-the-finished-promise\">reject the finished\n promise</a> for <var>apiMethodTracker</var> with <var>rejectionReason</var>.</p>"
26565
26565
},
26566
26566
{
26567
-
"html": "<p>If <var>apiMethodTracker</var> is non-null, then <a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#reject-the-finished-promise\" id=\"navigate-event-firing:reject-the-finished-promise\">reject the finished\n promise</a> for <var>apiMethodTracker</var> with <var>rejectionReason</var>.</p>"
26567
+
"html": "<p><a href=\"https://dom.spec.whatwg.org/#concept-event-fire\" id=\"navigate-event-firing:concept-event-fire-2\" data-x-internal=\"concept-event-fire\">Fire an event</a> named <code id=\"navigate-event-firing:event-navigateerror-4\"><a href=\"https://html.spec.whatwg.org/multipage/indices.html#event-navigateerror\">navigateerror</a></code> at <var>navigation</var> using\n <code id=\"navigate-event-firing:errorevent\"><a href=\"https://html.spec.whatwg.org/multipage/webappapis.html#errorevent\">ErrorEvent</a></code>, with additional attributes initialized according to\n <var>errorInfo</var>.</p>"
26568
26568
},
26569
26569
{
26570
26570
"html": "<p>If <var>navigation</var>'s <a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#concept-navigation-transition\" id=\"navigate-event-firing:concept-navigation-transition-6\">transition</a> is not null, then reject\n <var>navigation</var>'s <a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#concept-navigation-transition\" id=\"navigate-event-firing:concept-navigation-transition-7\">transition</a>'s\n <a href=\"https://html.spec.whatwg.org/multipage/nav-history-apis.html#concept-navigationtransition-finished\" id=\"navigate-event-firing:concept-navigationtransition-finished-4\">finished promise</a> with\n <var>rejectionReason</var>.</p>"
Copy file name to clipboardExpand all lines: ed/algorithms/speculation-rules.json
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -101,25 +101,25 @@
101
101
},
102
102
{
103
103
"name": "inner consider speculative loads steps",
104
-
"html": "Replace the step which performs the actual prefetching by looping over <var>prefetchCandidates</var> with the following:",
105
-
"rationale": "for",
104
+
"html": "Replace the step which performs the actual prefetching by looping over <var>prefetchCandidateGroups</var> with the following:",
105
+
"rationale": "let",
106
106
"steps": [
107
107
{
108
-
"html": "<a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-iterate\" id=\"ref-for-list-iterate④\">For each</a> <var>candidate</var> of <var>speculativeLoadCandidates</var>:",
108
+
"html": "<p>Let <var>speculativeLoadCandidateGroups</var> be the union of <var>prefetchCandidateGroups</var> and <var>prerenderCandidateGroups</var>.</p>"
109
+
},
110
+
{
111
+
"html": "<a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#list-iterate\" id=\"ref-for-list-iterate④\">For each</a> <var>group</var> of <var>speculativeLoadCandidateGroups</var>:",
109
112
"rationale": "run the following steps",
110
113
"steps": [
111
114
{
112
115
"html": "The user agent may run the following steps:",
113
116
"rationale": "let",
114
117
"steps": [
115
118
{
116
-
"html": "<p>Let <var>tagCandidates</var> be <var>speculativeLoadCandidates</var>.</p>"
117
-
},
118
-
{
119
-
"html": "<p>If <var>candidate</var> is a <a data-link-type=\"dfn\" href=\"https://wicg.github.io/nav-speculation/speculation-rules.html#prerender-candidate\" id=\"ref-for-prerender-candidate②\">prerender candidate</a>, then set <var>tagCandidates</var> to <var>prerenderCandidates</var>.</p>"
119
+
"html": "<p>Let <var>candidate</var> be <var>group</var>[0].</p>"
120
120
},
121
121
{
122
-
"html": "<p>Let <var>tagsToSend</var> be the result of <a data-link-type=\"dfn\" href=\"https://whatpr.org/html/11426/speculative-loading.html#collecting-tags-for-matching-speculative-load-candidates\" id=\"ref-for-collecting-tags-for-matching-speculative-load-candidates\">collecting tags for matching speculative load candidates</a> given <var>candidate</var> and <var>tagCandidates</var>.</p>"
122
+
"html": "<p>Let <var>tagsToSend</var> be the result of <a data-link-type=\"dfn\" href=\"https://whatpr.org/html/11426/speculative-loading.html#collect-tags-from-speculative-load-candidates\" id=\"ref-for-collect-tags-from-speculative-load-candidates\">collecting tags from speculative load candidates</a> given <var>group</var>.</p>"
"html": "<p>If <var>candidate</var> is a <a data-link-type=\"dfn\" href=\"https://whatpr.org/html/11426/speculative-loading.html#prefetch-candidate\" id=\"ref-for-prefetch-candidate\">prefetch candidate</a>, then set <var>prefetchRecord</var>’s <a data-link-type=\"dfn\" href=\"https://wicg.github.io/nav-speculation/prefetch.html#prefetch-record-anonymization-policy\" id=\"ref-for-prefetch-record-anonymization-policy\">anonymization policy</a> to <var>candidate</var>’s <a data-link-type=\"dfn\" href=\"https://whatpr.org/html/11426/speculative-loading.html#sl-candidate-anonymization-policy\" id=\"ref-for-sl-candidate-anonymization-policy\">anonymization policy</a>.</p>"
129
129
},
130
130
{
131
-
"html": "If <var>candidate</var> is a <a data-link-type=\"dfn\" href=\"https://wicg.github.io/nav-speculation/speculation-rules.html#prerender-candidate\" id=\"ref-for-prerender-candidate③\">prerender candidate</a>, then the user agent may run the following steps:",
131
+
"html": "If <var>candidate</var> is a <a data-link-type=\"dfn\" href=\"https://wicg.github.io/nav-speculation/speculation-rules.html#prerender-candidate\" id=\"ref-for-prerender-candidate②\">prerender candidate</a>, then the user agent may run the following steps:",
132
132
"rationale": "set",
133
133
"steps": [
134
134
{
135
-
"html": "<p>Set <var>prefetchRecord</var>’s <a data-link-type=\"dfn\" href=\"https://wicg.github.io/nav-speculation/prefetch.html#prefetch-record-prerendering-traversable\" id=\"ref-for-prefetch-record-prerendering-traversable\">prerendering traversable</a> to \"<code>to be created</code>\"</p>"
135
+
"html": "<p>Set <var>prefetchRecord</var>’s <a data-link-type=\"dfn\" href=\"https://wicg.github.io/nav-speculation/prefetch.html#prefetch-record-prerendering-traversable\" id=\"ref-for-prefetch-record-prerendering-traversable\">prerendering traversable</a> to \"<code>to be created</code>\".</p>"
136
136
},
137
137
{
138
138
"html": "<p>Set <var>prefetchRecord</var>’s <a data-link-type=\"dfn\" href=\"https://wicg.github.io/nav-speculation/prefetch.html#prefetch-record-prerendering-target-navigable-name-hint\" id=\"ref-for-prefetch-record-prerendering-target-navigable-name-hint\">prerendering target navigable name hint</a> to <var>candidate</var>’s <a data-link-type=\"dfn\" href=\"https://wicg.github.io/nav-speculation/speculation-rules.html#prerender-candidate-target-navigable-name-hint\" id=\"ref-for-prerender-candidate-target-navigable-name-hint②\">target navigable name hint</a>.</p>"
0 commit comments