Closed Bug 918720 Opened 11 years ago Closed 11 years ago

[XHR2] FormData.append() does not handle "file name" (3rd argument)?

Categories

(Core :: DOM: Core & HTML, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: hsteen, Unassigned)

References

()

Details

There is an unexpected failure while this test case is being set up, I believe it throws because of a 3rd argument to FormData.append() ?
Test cases:
http://w3c-test.org/web-platform-tests/master/XMLHttpRequest/formdata.htm
If you pass a third argument, the middle argument needs to be a Blob, not a string. The test does

  function create_formdata () {
    var fd = new FormData();
    for (var i = 0; i < arguments.length; i++) {
      fd.append.apply(fd, arguments[i]);
    };
    return fd;
  }
  ...
  create_formdata(['key', 'value', 'kv.txt'])

Can you update the test? (And do add a test that this case fails.)
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(hsteen)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.