[Webkit-unassigned] [Bug 103422] Optional second argument to TrackEvent constructor is not respected
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Nov 28 02:37:44 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=103422
--- Comment #4 from Antoine Quint <graouts at apple.com> 2012-11-28 02:39:58 PST ---
The IDL (per http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#trackevent) is as follows:
[Constructor(DOMString type, optional TrackEventInit eventInitDict)]
interface TrackEvent : Event {
readonly attribute object? track;
};
dictionary TrackEventInit : EventInit {
object? track;
};
… so it looks like the optional TrackEventInit parameter allows any object to be the value of the "track" property. So it looks like providing just a vanilla JS object as the track by calling the following should work:
var event = new TrackEvent('foo', {track: {}});
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list