W3C home > Mailing lists > Public > public-webapps-bugzilla@w3.org > August 2012

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

From: <bugzilla@jessica.w3.org>
Date: Sat, 11 Aug 2012 01:38:54 +0000
Message-Id: <E1T00fG-0000kY-16@jessica.w3.org>
To: public-webapps-bugzilla@w3.org

--- 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//")));

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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:04:25 UTC