Re: [webcomponents] Changes to Dispatching Events (#274)

Strictly speaking, we need to branch after item 3 of this section because `target` could be overridden in item 3, and the `scoped flag` depends on whether the `target` is in-document or not.

I went though HTML spec, finding that the `target override` when used is always the `Document` object, so we can ignore this minor details.

Another option is set the `scoped flag` regardless of in-document or not. We can then initialize the flag in [3.4. Constructing events](https://dom.spec.whatwg.org/#constructing-events). It only affects the event path, which is empty anyway if the `target` is not in-document, so the flag does not matter at all for XMLHttpRequest.

This might look cleaner. WDYT?

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/pull/274#issuecomment-119416145

Received on Wednesday, 8 July 2015 03:56:38 UTC