Skip to content

Commit

Permalink
Editorial: use HTML's definition of entry
Browse files Browse the repository at this point in the history
It moved from XMLHttpRequest to HTML.
  • Loading branch information
annevk authored and ericorth committed Feb 18, 2022
1 parent 8e547f0 commit 486e626
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions fetch.bs
Original file line number Diff line number Diff line change
Expand Up @@ -6494,16 +6494,16 @@ the associated steps:
<cite>Returning Values from Forms: multipart/form-data</cite>. [[!RFC7578]]</p>

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

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

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

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

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

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

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

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

0 comments on commit 486e626

Please sign in to comment.