Skip to content

Commit

Permalink
Editorial: assert entry list isn't null in the form submission algorithm
Browse files Browse the repository at this point in the history
The construct the entry list algorithm can return null if the form's
constructing entry list flag is true, but "entry list" is assumed to be
non-null in the rest of the form submission algorithm. This makes sense,
since the constructing entry list flag has been checked in step 2, and
even if the submit event listeners invoked the `FormData` constructor,
the entry list construction would happen synchronously in that listener.

This change adds an assertion to clarify that entry list cannot be null.
  • Loading branch information
Andreu Botella committed Jan 4, 2022
1 parent 54ad94b commit 68ae0e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -56933,6 +56933,8 @@ fur
<li><p>Let <var>entry list</var> be the result of <span>constructing the entry list</span> with
<var>form</var>, <var>submitter</var>, and <var>encoding</var>.</p></li>

<li><p>Assert: <var>entry list</var> is not null.</p></li>

<li>
<p>If <var>form</var> <span>cannot navigate</span>, then return.</p>

Expand Down

0 comments on commit 68ae0e1

Please sign in to comment.