Re: [w3c/webcomponents] Events whose composed flag should be true (#513)

 If possible, I would like to adopt per-interface basis for synthetic events too, but my conern is its feasibility.
  
 Suppose the following cases:

 ```
 let e1 = new FocusEvent('xxx');
 let e2 = new FocusEvent('xxx', { bubbles: true });
 let e3 = new FocusEvent('xxx', { bubbles: true , composed: true });
 let e4 = new FocusEvent('xxx', { bubbles: true , composed: false});
 ```
 
 If we adopt "default changes per-interface" for synthetic events too, I think user's expectations are:

 ```
 assert(e1.composed === true);
 assert(e2.composed === true);
 assert(e3.composed === true);
 assert(e4.composed === false);
 ```

 However, since `FocusEventInit` inherits `EventInit`, we can not distinguish case e2 and e4 nicely in our binding layer. In both cases, FocusEventInit.composed is already set to `false`.


---
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-224477918

Received on Wednesday, 8 June 2016 03:26:55 UTC