[svgwg] No way to construct a TimeEvent, so its initTimeEvent method is fully useless (#921)

mstange has just created a new issue for https://github.com/w3c/svgwg:

== No way to construct a TimeEvent, so its initTimeEvent method is fully useless ==
```webidl
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 regression test for [a bug in Firefox related to these events](https://bugzilla.mozilla.org/show_bug.cgi?id=1845381).

Please view or discuss this issue at https://github.com/w3c/svgwg/issues/921 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 26 July 2023 01:35:48 UTC