Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interop: blob with empty content type is not converted to text/xml #357

Open
dlrobertson opened this issue Oct 6, 2022 · 3 comments
Open

Comments

@dlrobertson
Copy link
Member

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: whatwg/fetch#1464 and whatwg/fetch#1436

@annevk
Copy link
Member

annevk commented Oct 7, 2022

I'm not entirely sure how to interpret this. Are you simultaneously pointing out that it's inconsistent with blobs and that browsers are not aligned on this?

@dlrobertson
Copy link
Member Author

Ah, sorry just that browsers are not aligned on this.

@annevk
Copy link
Member

annevk commented Oct 7, 2022

I see, I kinda suspect this already has test coverage so unless that's not the case or someone wants to make a change to the spec this might be a good fit for the Interop effort?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants