-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed as duplicate of#12035
Description
Describe the problem
When I have many attributes on an element, I often comment them in-and-out while developing to see how event calbacks, styles, etc, behave in isolation. This works as expected in other frameworks.
However, Svelte doesn't seem to allow comments within element tags. The following snippet errors with '<!--' is not a valid attribute name:
<div
<!-- id="" -->
class=""
>
...
</div>This wouldn't be valid HTML syntax, but this restriction just makes my life a harder.
Describe the proposed solution
Make these types of comments valid Svelte syntax and strip them out from the compiled output.
Importance
would make my life easier
Metadata
Metadata
Assignees
Labels
No labels