-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shadow: define event retargeting for shadow trees
Includes support for scoped events that a number of HTML features require. The invocation order handles CAPTURE first, then TARGET and BUBBLE. Retargeting happens during the BUBBLE phase as developers mostly use BUBBLE listeners and therefore it would be unexpected if it was interleaved with the CAPTURE phase. A split approach where capture listeners for the targets are invoked during CAPTURE and bubble listeners are invoked during BUBBLE was also considered, but eventually dismissed as it would make shadow hosts observable. Fixes #237 and fixes WICG/webcomponents#485.
- Loading branch information
Showing
2 changed files
with
156 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.