[Bug 18529] Existence of separators in token should throw SyntaxError

https://www.w3.org/Bugs/Public/show_bug.cgi?id=18529

--- Comment #5 from Jonas Sicking <jonas@sicking.cc> 2012-08-11 01:38:53 UTC ---
I'd rather not get into the business of enforcing correct mimetypes. That
rabbit hole can go deep once you start considering that different mimetypes
accept different parameters.

I'd rather just treat the mimetype as an opaque string and forward it to
whatever API that is using the mimetype. So for example if a page does

xhr = new XMLHttpRequest();
xhr.open("GET", URL.createObjectURL(new Blob(..., ";;foopy//")));
xhr.send();

in this case the XHR code already has to be able to deal with malformed
incoming mimetypes since the server could be sending anything. Likewise a page
could do


xhr = new XMLHttpRequest();
xhr.open("GET", uri);
xhr.send(new Blob(..., ";;foopy//"));

which isn't that different from a page calling

xhr.setRequestHeader("Content-Type", ";;foopy//");

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Saturday, 11 August 2012 01:38:57 UTC