-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
Describe the bug
I noticed that Svelte behaves differently when it comes to setting properties to a custom element.
When the custom element is autonomous (eg <my-element>), it behaves correctly, passing the attributes as properties.
If instead the custom element extends a builtin element (eg <a is="my-link">) Svelte does not pass the attributes as properties.
The problem I guess comes from this check that checks only the name tag of the node:
| export function is_custom_element_node(node) { |
Reproduction
Logs
System Info
Svelte 5.19.1 (Playground)Severity
annoyance
Metadata
Metadata
Assignees
Labels
No labels