Add event.composedPath()
See original GitHub issueEvents dispatched through jsdom seem to be missing the path
property: https://dom.spec.whatwg.org/#event-path
An event has an associated path. A path is a list of tuples, each of which consists of an item (an EventTarget object) and a target (null or an EventTarget object). A tuple is formatted as (item, target). A path is initially the empty list.
Not quite sure what it would require to support this, but if you could give me some pointers, I can attempt an implementation.
Is there any other API jsdom provides that would help determine the path an event is bubbling through?
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Event.composedPath() - Web APIs - MDN Web Docs
The composedPath() method of the Event interface returns the event's path which is an array of the objects on which listeners will be ......
Read more >composedPath() Event Method - W3Schools
The composedPath() method returns an array of objects containing the elements in the event flow, in the correct execution order.
Read more >Event.composedPath() - Web APIs
The composedPath() method of the Event interface returns the event's path which is an array of the objects on which listeners will be...
Read more >determine event path in DOM Event bubbling - Stack Overflow
The composedPath() method of the Event interface returns the event's path which is an array of the objects on which listeners will be ......
Read more >DOM Structures with Event composedPath - YouTube
This tutorial explains how you can use the Event composedPath () method to determine the entire DOM path from the element that the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Okay, for anyone wondering, this seems to be a decent enough workaround for now:
@domenic feel free to close this as it is beyond the scope of jsdom atm.
Just to update, it seems latest Chrome supports
composedPath
http://jsbin.com/vepohu/3/edit?html,console,output