Skip to content

<tr> is invalid inside <table> #15622

Open
@sexnine

Description

@sexnine

Describe the bug

Because of the new node_invalid_placement rule. Svelte throws errors when using a <tr> inside a <table>.

This should be allowed, even mdn has an example using those elements this way but svelte throws an error about it.


Side note: Implementing this rule is one of the worst things svelte has ever done. Throw a warning sure, but throwing an error is overreaching for a JS framework. I do not want a framework to force me to write HTML "correctly".

Reproduction

https://svelte.dev/playground/hello-world?version=5.25.3#H4sIAAAAAAAACm3LQQrCMBRF0a2UN1IIdh5CwZl7sA5S8wuBb1qSZ6uU7l2COHN6uHdD8g-BxUVUp2adsobmICFSwhEGY1QpsNcNfM-1qwDzu87zfCqLKKsNvsg_v0-Jklhg4egHla5PPR1z51rmrk-u_TIMKC_CMj9lvxnQR11jCrCj1yL7BwjxYu2uAAAA

Logs

System Info

N/A

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions