Skip to content

Incorrect warning: <tr> cannot be child of <template>, according to HTML specifications #13318

Closed
@oodavid

Description

@oodavid

Vue version

3.5.13

Link to minimal reproduction

https://play.vuejs.org/#eNp9UstOwzAQ/BXjSy9NcoBTiSoB6gEkoAKOvkTONk1xbMuPElTl31k7anAQcFvPzNqzOz7RG63zowe6oqXlptWOWHBer5kkpO20Mo48ft4prCRIR3ZGdWSRFwkW2hfXTJbFeAG24sFBp0XlIF5UJvIIIDQTjIiZ6nCq1xyEKAssJkkxabCcvZA6WhMS7CQCuqTOciV3bZMfrJI47im0McqxqRVgnrVrlbSMrkhkAlcJoT4eIuaMh+UZ53vg77/gB9sHjNGtAQvmCIxOnKtMA26kN69P0GM9kZ2qvUD1P+QLWCV88DjKbr2s0Xaii27vY2StbN7spncg7XmoYDQoh6hnFEML+/pr9G+7l/lV7GNywC3+yD18m3kOF1lGtqLisFeiBkPCfsevk2WoSFKhwxdErNBk

Steps to reproduce

Visit the reproduction link, you will see this error:

<tr> cannot be child of <template>, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality

But as we know, <template> has no restrictions in the permitted content:

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/template#technical_summary

What is expected?

The warning shouldn't exist.

What is actually happening?

The warning exists

Any additional comments?

It shouldn't be necessary to go into why I am using this pattern, it's probably a distraction :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.scope: compiler

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions