[whatwg/xhr] interop: blob with empty content type is not converted to text/xml (Issue #357)

According to https://xhr.spec.whatwg.org/#response-mime-type:

> If mimeType is failure, then set mimeType to text/xml.

Note: The content-type of the blob is set to `""` (an invalid mime type) when the input `type` is not set or is invalid.

|Test                         |Firefox      |Chrome| Safari                  |
|-------------------|----------|--------|-----------------|
|no content type     | `text/xml`|`null`   |`""`                      |
|bad content type   | `text/xml`|`null`   |`""`                      |

Related to: https://github.com/whatwg/fetch/issues/1464 and https://github.com/whatwg/fetch/issues/1436

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/xhr/issues/357
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/xhr/issues/357@github.com>

Received on Thursday, 6 October 2022 14:30:09 UTC