Skip to content

Element with slot attribute retains it when renderedΒ #8621

@gtm-nayan

Description

@gtm-nayan

Describe the bug

The slot attribute shouldn't be added since it's not a custom element.

Reproduction

https://svelte.dev/repl/17cb875938d545329c37b88b00a0d98a?version=3.59.1

Line 27 of the JS output contains an attr call to set the slot attribute on the h1.

Logs

No response

System Info

not relevant

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions