Bug 103423 - Calling document.createEvent("TrackEvent") should throw a NOT_SUPPORTED_ERR error.
Summary: Calling document.createEvent("TrackEvent") should throw a NOT_SUPPORTED_ERR e...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Safari 9
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: http://w3c-test.org/dom/nodes/Documen...
Keywords: InRadar, W3CTest
Depends on:
Blocks:
 
Reported: 2012-11-27 08:44 PST by Antoine Quint
Modified: 2019-02-06 09:18 PST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine Quint 2012-11-27 08:44:44 PST
We're failing the Opera-submitted test at http://w3c-test.org/html/tests/submission/Opera/media/interfaces/TrackEvent/createEvent.html.

We fail to throw the NOT_SUPPORTED_ERR error when calling document.createEvent('TrackEvent'). I believe this is a broader WebCore issue that we don't follow the latest DOM spec that this method should only be used for legacy events. See http://dom.spec.whatwg.org/#dom-document-createevent.
Comment 1 Radar WebKit Bug Importer 2012-11-27 08:45:02 PST
<rdar://problem/12758230>
Comment 2 Adam Barth 2012-11-27 11:32:13 PST
http://dom.spec.whatwg.org/#dom-document-createevent says that we should be able to create any sort of supported event via this API.
Comment 3 Ian 'Hixie' Hickson 2012-11-27 11:58:56 PST
Adam, I think you're misreading the algorithm. (Though I don't really understand why it's specced that way.)
Comment 4 Adam Barth 2012-11-27 12:40:25 PST
Ah, yes.  Thanks.  That's quite different from the behavior we have currently.
Comment 5 Chris Rebert 2016-02-25 11:26:31 PST
Still not spec compliant.
Relevant, more general DOM testcase: http://w3c-test.org/dom/nodes/Document-createEvent.html
Comment 6 Chris Rebert 2016-02-25 13:41:08 PST
Corresponding Chrome bug: https://bugs.chromium.org/p/chromium/issues/detail?id=569690
Comment 7 Lucas Forschler 2019-02-06 09:18:43 PST
Mass move bugs into the DOM component.