Skip to content

Don't lowercase custom element properties #2190

@dummdidumm

Description

@dummdidumm

Describe the bug

Custom element props shouldn't be lowercased, as their casing is preserved because it's set as a property, not as an attribute. Since Svelte 4.x that's actually what's happening (was always lowercased before), and we need to adjust the language tools, too.

Reproduction

<a-custom-element camelCase={1} />

Expected behaviour

Shouldn't lowercase ce props

System Info

irrelevant

Which package is the issue about?

svelte2tsx

Additional Information, eg. Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedFixed in master branch. Pending production release.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions