This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
new Blob([], {type:'Foobar\u00E5\uD801\uDC7E '}); I think we should throw a SyntaxError exception if type is not a valid media type. (Not sure what to do about leading/trailing whitespace; it could throw, trim or leave as is. Also not sure whether we'd want to convert to lowercase.)
(Bug 16728 is similar). I think we should: 1. Throw on invalid media types, e.g. if any illegal chars are used or it violates the ABNF for MIME type strings. 2. Case convert to lowercase. 3. Throw on leading/trailing whitespace. It's hard for me to conclude that we should offer syntax convenience for such an error.
Sounds good to me.
Also do this for Blob.slice()
Marking this fixed. Check to see it's done right :) http://dev.w3.org/2006/webapi/FileAPI/#dfn-Blob