Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test to emit custom event #758

Open
Grafikart opened this issue Feb 20, 2020 · 1 comment
Open

Add test to emit custom event #758

Grafikart opened this issue Feb 20, 2020 · 1 comment
Labels
Additional Tests For issues that identify good additional tests to run on all libraries

Comments

@Grafikart
Copy link

Grafikart commented Feb 20, 2020

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.

<my-element></my-element>
<script>
document.querySelector('my-element').addEventListener('myevent', function (e) {

});
</script>

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.
@rictic rictic added the Additional Tests For issues that identify good additional tests to run on all libraries label Dec 29, 2021
@rictic
Copy link
Contributor

rictic commented Dec 29, 2021

This is a good test to add if we add a suite for the ability to produce a web component with each library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Additional Tests For issues that identify good additional tests to run on all libraries
Projects
None yet
Development

No branches or pull requests

2 participants