[whatwg/dom] Fix event path iteration (#686)

Instead of shoehorning all target handling into the bubbling iteration, this separates "capturing" iteration from "bubbling" iteration and the Event object's phase is set to target as appropriate in both.

This also invokes the event listeners in a more natural order.

Tests: ...

Fixes #685.
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/dom/pull/686

-- Commit Summary --

  * Editorial: event's patch consists of structs
  * Fix event path iteration

-- File Changes --

    M dom.bs (77)

-- Patch Links --

https://github.com/whatwg/dom/pull/686.patch
https://github.com/whatwg/dom/pull/686.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/686

Received on Thursday, 6 September 2018 12:43:52 UTC