-
Notifications
You must be signed in to change notification settings - Fork 775
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mock-doc): add simple MockEvent#composedPath() impl (#3204)
this commit adds a simplistic implementation of composedPath. specifically, it inspects a MockEvent's target, and attempts to climb the dom to provide the path the event propagates. this implementation does not take into account closed shadow roots, nor slots. the reason for which is that unlike a browser, which has far more knowledge of the dom and event phases, stencil has none of this at the mock-doc level, making a deep implementation difficult. a fuller featured version may be considered for a future version of stencil STENCIL-240: Enhance MockEvent to support composedPath()
- Loading branch information
1 parent
10efeb6
commit 7b47d96
Showing
2 changed files
with
79 additions
and
1 deletion.
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
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