jussi-kalliokoski / webmidi-issues

A test repo for importing the issues from bugzilla
0 stars 0 forks source link

MIDIEvent lacking constructor #17

Open jussi-kalliokoski opened 11 years ago

jussi-kalliokoski commented 11 years ago

Originally reported on W3C Bugzilla ISSUE-20512 Mon, 24 Dec 2012 10:45:24 GMT Reported by Marcos Caceres Assigned to This bug has no owner yet - up for the taking

The MIDIEvent is lacking a way for authors to construct MIDI events.

[Constructor(DOMString type, optional MIDIEventInit eventInitDict)] interface MIDIEvent : Event { readonly attribute DOMHighResTimeStamp timestamp; readonly attribute Uint8Array data; };

dictionary MIDIEventInit : EventInit { any data; };

(note that I left data as any, assuming UInt8Array conversion will be performed automatically).