Skip to content

Commit 6257e22

Browse files
authored
Editorial: use HTML's definition of entry
It moved from XMLHttpRequest to HTML.
1 parent 8e4553b commit 6257e22

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

fetch.bs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6478,16 +6478,16 @@ the associated steps:
64786478
<cite>Returning Values from Forms: multipart/form-data</cite>. [[!RFC7578]]</p>
64796479

64806480
<p>Each part whose `<code>Content-Disposition</code>` header contains a `<code>filename</code>`
6481-
parameter must be parsed into an <a for=FormData>entry</a> whose value is a {{File}} object
6481+
parameter must be parsed into an <a for="entry list">entry</a> whose value is a {{File}} object
64826482
whose contents are the contents of the part. The {{File/name}} attribute of the {{File}} object
64836483
must have the value of the `<code>filename</code>` parameter of the part. The {{Blob/type}}
64846484
attribute of the {{File}} object must have the value of the `<code>Content-Type</code>` header
64856485
of the part if the part has such header, and `<code>text/plain</code>` (the default defined by
64866486
[[!RFC7578]] section 4.4) otherwise.</p>
64876487

64886488
<p>Each part whose `<code>Content-Disposition</code>` header does not contain a
6489-
`<code>filename</code>` parameter must be parsed into an <a for=FormData>entry</a> whose value
6490-
is the <a lt="UTF-8 decode without BOM">UTF-8 decoded without BOM</a> content of the part.
6489+
`<code>filename</code>` parameter must be parsed into an <a for="entry list">entry</a> whose
6490+
value is the <a lt="UTF-8 decode without BOM">UTF-8 decoded without BOM</a> content of the part.
64916491
<span class=note>This is done regardless of the presence or the value of a
64926492
`<code>Content-Type</code>` header and regardless of the presence or the value of a
64936493
`<code>charset</code>` parameter.</span></p>
@@ -6499,8 +6499,8 @@ the associated steps:
64996499

65006500
<li><p>If that fails for some reason, then <a>throw</a> a {{TypeError}}.
65016501

6502-
<li><p>Return a new {{FormData}} object, appending each <a for=FormData>entry</a>, resulting from
6503-
the parsing operation, to <a for=FormData>entries</a>.
6502+
<li><p>Return a new {{FormData}} object, appending each <a for="entry list">entry</a>, resulting
6503+
from the parsing operation, to its <a for=FormData>entry list</a>.
65046504
</ol>
65056505

65066506
<p class=XXX>The above is a rough approximation of what is needed for
@@ -6516,8 +6516,8 @@ the associated steps:
65166516

65176517
<li><p>If <var>entries</var> is failure, then <a>throw</a> a {{TypeError}}.
65186518

6519-
<li><p>Return a new {{FormData}} object whose
6520-
<a spec=xhr>entries</a> are <var>entries</var>.
6519+
<li><p>Return a new {{FormData}} object whose <a for=FormData>entry list</a> is
6520+
<var>entries</var>.
65216521
</ol>
65226522

65236523
<p>Otherwise, <a>throw</a> a {{TypeError}}.

0 commit comments

Comments
 (0)