Skip to content

Child combinators crash compiler on elements with spread attributes #5465

@SourceR85

Description

@SourceR85

After the update to 3.28.0 this error breaks svelte:
Win Chrome 85.0.4183.121/node.js 14.11.0:
Cannot read property 'toLowerCase' of null
Firefox 81.0 (64-Bit) reports TypeError: attr.name is null

After some tests in repl I found the source of this crash:
The svelte parser dosn't like CSS-sibling selectors (+, ~) in combination with destructored variables...

REPL:
https://svelte.dev/repl/fe56269d373a462cb363a485ddc7aa09?version=3.28.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions