- From: Ryosuke Niwa <notifications@github.com>
- Date: Tue, 07 Jun 2016 19:28:43 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc:
Received on Wednesday, 8 June 2016 02:29:14 UTC
> I prefer not changing the default value, per Event interface. > Rather, I would like to think as if UA set it to true explicitly, like the following: > > ``` > // This is *imaginary* code, which is happening in browser's engine for UA events. > let e = new FocusEvent('xxx', { composed: true }); > ``` > > Thus, I would like users to specify it explicitly as UA *does*. > The thing is, `FocusEvent` doesn't take `EventInit`. It takes `FocusEventInit`, which inherits from `UIEventInit`, which in turn inherits from `EventInit`. In the case of `MouseEvent` and its derived classes, `MouseEventInit` doesn't even inherit from `EventInit` (this is presumably a spec bug though). If we're not going to the route of initializing based on the interface, then we absolutely need to enumerate every single event for which `composed` flag must be set to `true` by UA instead of vaguely relying on the interface being used. --- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/513#issuecomment-224470903
Received on Wednesday, 8 June 2016 02:29:14 UTC