Skip to content

Tags in "<text>" tag becomes invisible #13506

@AlexDev404

Description

@AlexDev404

Describe the bug

Text and children inside of any tag "<text>" is rendered invisible by SvelteKit.

Reproduction

Take a look at the following example for an explanation:
https://svelte.dev/repl/22bc62add48d4c3299a4ea2eef14a8dc?version=4.2.19

In brief, any content that is placed in a "" tag will be rendered invisible inside of the browser.

<!-- This example is also reproducible even when nested inside of other elements --->
<text>
   <h1>You can't see this</h1>
</text>

This has nothing to do with CSS.

Logs

No logs were output.

System Info

I don't know the specific configuration of the SvelteKit REPL, but I have tried it in multiple browsers (FireFox, Microsoft Edge, Google Chrome) and all seem to output the same

Severity

serious, but I can work around it

Additional Information

We're currently using "<text>" inside our components, and after upgrading our SvelteKit version, because of this, most of our components are being rendered invisible now.

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