diff --git a/xhr.bs b/xhr.bs index 00b3eb7..32dd843 100644 --- a/xhr.bs +++ b/xhr.bs @@ -1595,41 +1595,15 @@ interface FormData {
Each {{FormData}} object has an associated -entry list (a list of -entries). It is initially the empty list. +entry list (an +entry list). It is initially empty. -
An entry consists of a -name and a -value. - -
For the purposes of interaction with other algorithms, an entry's filename is -the empty string if value is not a {{File}} object, and otherwise its -filename is the value of entry's value's {{File/name}} -attribute. - -
To create an entry for name, value, and optionally a -filename, run these steps: - -
Let entry be a new entry. - -
Set entry's name to name. - -
If value is a {{Blob}} object and not a {{File}} object, then set
- value to a new {{File}} object, representing the same bytes, whose {{File/name}}
- attribute value is "blob
".
-
-
-
If value is (now) a {{File}} object and filename is given, then set - value to a new {{File}} object, representing the same bytes, whose {{File/name}} - attribute value is filename. - -
Set entry's value to value. - -
Return entry. -
This section used to define +entry, an entry's +name and +value, and the +create an entry algorithm. These definitions have been +moved to the HTML Standard. [[HTML]]
The
new FormData(form)
@@ -1659,7 +1633,7 @@ method steps are:
Let value be value if given; otherwise blobValue. -
Let entry be the result of creating an entry with +
Let entry be the result of creating an entry with name, value, and filename if given.
Append entry to this's entry list. @@ -1710,7 +1684,7 @@ method steps are:
Let value be value if given; otherwise blobValue. -
Let entry be the result of creating an entry with +
Let entry be the result of creating an entry with name, value, and filename if given.
If there are entries in this's entry list