Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to construct a TimeEvent, so its initTimeEvent method is fully useless #921

Open
mstange opened this issue Jul 26, 2023 · 0 comments

Comments

@mstange
Copy link

mstange commented Jul 26, 2023

interface TimeEvent : Event {

  readonly attribute WindowProxy? view;
  readonly attribute long detail;

  undefined initTimeEvent(DOMString typeArg, Window? viewArg, long detailArg);
};

I noticed that TimeEvent does not have a constructor. And as far as I can tell there is no reserved name for document.createEvent(...) either. I think this means that there is no way for JS code to create a TimeEvent, and that the initTimeEvent method is rather pointless.

I came across this when I was writing a test for a fix to some weird behavior in Firefox related to these events which was in the way of some performance optimizations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant