webcomponents / webcomponents/custom-elements-everywhere

Add test to emit custom event

Open
#758 1 comment 0 reactions 0 assignees View on GitHub
Additional Tests
Dominant language
JavaScript
Stars
1.3k
Forks
108
PR merge metrics
No merged PRs in 30d

Description

I'm currently encountering a problem with svelte and I think it could be interesting to know if other framework has this caveat.

The goal of the test is to see if a custom element produced by a framework can emit a [CustomEvent](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent).

```html

document.querySelector('my-element').addEventListener('myevent', function (e) {

});

```

The sentence would be

- The library/framework should be able to dispatch DOM events from a custom element. These DOM events could be listened from the outside.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.