[Webkit-unassigned] [Bug 183629] New: Allow extending of event objects
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 14 05:56:38 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=183629
Bug ID: 183629
Summary: Allow extending of event objects
Product: WebKit
Version: Safari Technology Preview
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: HTML Events
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jaffathecake at gmail.com
class Foo extends Event {}
console.log(new Foo('bar').constructor);
Chrome & Firefox say Foo, Edge & Safari say Event.
The Chrome/Firefox behaviour is preferable, as it allows you to create custom event objects, which is especially useful when developing custom elements.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180314/50d4883c/attachment.html>
More information about the webkit-unassigned
mailing list