-
Notifications
You must be signed in to change notification settings - Fork 393
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
Score 100% on Custom Elements Everywhere benchmark #3335
Comments
#1904 for historical context |
Sorry, wrong button! |
This issue has been linked to a new work item: W-13831267 |
Related: #1811 We discussed this today in dev sync, @ekashida and I agree that it would make sense to support <x-foo onfoo-bar>
<x-foo onFooBar> ... i.e., event names in kebab-case or pascal/camel/upper-case, in order to score 100% on Custom Elements Everywhere. Even if LWC components do not support this format, other web component frameworks may dispatch events in this format, and for maximum interoperability, LWC should be able to declaratively handle those events. We can solve this purely in the compiler level – when the VNode is sent to the client, it already has the event as the key in an object, so it's trivial to support hyphens/uppercase letters. The question is whether to support this only for We also need #3602 to be merged first since we will probably have to grab the |
The Custom Elements Everywhere benchmark is an industry-standard tool to measure the degree that a web framework supports custom elements (web components).
Now that we have
lwc:external
, we should be able to score 100% on this test. There are two pieces of work here:camelCase
andkebab-case
, not just lowercase.The text was updated successfully, but these errors were encountered: