https://www.w3.org/Bugs/Public/show_bug.cgi?id=16746
Summary: Syntax check 'type' in Blob constructor
Product: WebAppsWG
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: File API
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
CC: [email protected]
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.)
--
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.