Support for CustomEvent (and the general plan for Level 3 support)
See original GitHub issueHi,
I noticed jsdom
doesn’t support Level 3 custom events, so the following code crashes:
var tap = document.createEvent('CustomEvent');
tap.initCustomEvent('tap', true, true, {});
It would be relatively trivial to add a basic empty implementation in the level 2 folder (baaaaad), but I wouldn’t know where to start with Level 3 (everything is commented-out). What’s the plan in that area?
On a related topic, the new standard seems to be using event constructors instead of initCustomEvent. Does that fit into Level 4 support?
var event = new Event('focus', {bubbles:false,cancelable:true});
document.querySelector('input').dispatchEvent(event);
Issue Analytics
- State:
- Created 10 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top Results From Across the Web
CustomEvent | Can I use... Support tables for HTML5, CSS3, etc
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
Read more >Create a Custom Event - Salesforce Help
Select Routes & Schedule, and then click Custom Event. In the Create Custom Event Config window, select your custom object from the list,...
Read more >Custom Variable and Event Reporting in Classic Google ...
This event carries the custom variables into GA, so the general page view tracking is unaffected by the Demandbase integration. This special ...
Read more >Tracked Custom Events - Insightly Help Center
Under the Feature Settings section, select Tracked Custom Events. From the Tracked Custom Events page, existing custom events will display in the list...
Read more >Custom Events - Teachstone
Support engagement with features such as live chat and recording access; Connect participants ... Bring a Teachstone Custom Event to Your Program Today....
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
@rprieto I found that doing something like the following worked for my purposes:
Fixed by https://github.com/tmpvar/jsdom/commit/5459bec38660658e4e18642265f61c3d79e984dd