WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 151931
103423
Calling document.createEvent("TrackEvent") should throw a NOT_SUPPORTED_ERR error.
https://bugs.webkit.org/show_bug.cgi?id=103423
Summary
Calling document.createEvent("TrackEvent") should throw a NOT_SUPPORTED_ERR e...
Antoine Quint
Reported
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
.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2012-11-27 08:45:02 PST
<
rdar://problem/12758230
>
Adam Barth
Comment 2
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.
Ian 'Hixie' Hickson
Comment 3
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.)
Adam Barth
Comment 4
2012-11-27 12:40:25 PST
Ah, yes. Thanks. That's quite different from the behavior we have currently.
Chris Rebert
Comment 5
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
Chris Rebert
Comment 6
2016-02-25 13:41:08 PST
Corresponding Chrome bug:
https://bugs.chromium.org/p/chromium/issues/detail?id=569690
Lucas Forschler
Comment 7
2019-02-06 09:18:43 PST
Mass move bugs into the DOM component.
Ahmad Saleem
Comment 8
2023-10-07 15:47:56 PDT
If I go by TextTrack -
https://wpt.fyi/results/html/semantics/embedded-content/media-elements/interfaces/TrackEvent/createEvent.html?label=master&label=experimental&aligned=&q=createevent
^ Safari Technology Preview 180 is passing above. If I go by 'DOM', we have following now on WPT:
https://wpt.fyi/results/dom?label=master&label=experimental&aligned=&q=createevent
^ In above, Safari / WebKit is still failing few test cases.
Anne van Kesteren
Comment 9
2023-12-19 06:50:11 PST
This particular instance was fixed at the end of 2015 by Darin. *** This bug has been marked as a duplicate of
bug 151931
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug