Skip to content

Allow to use <noscript> html tag instead of rewriting it to span #16116

Closed as not planned
@VityaSchel

Description

@VityaSchel

Describe the problem

I'm trying to style tag so that it has pointer-events-none when a peer element (checkbox) is checked, which would be a nice way of having a javascript-less alert about disabled javascript, however svelte rewrites noscript tag to and the class does not apper at all

<input class="peer hidden" type="checkbox" />
<noscript class="peer-checked:pointer-events-none">
content
</noscript>

this is converted to

<span class="yzhee768w" style="display: inline !important;">
</span>

If I wanted to check for javascript runtime I would use browser but I need to check for JavaScript support in browser.

Describe the proposed solution

perhaps <noscript rewrite="false"></noscript>? I could use {@html} but I don't want to stringify into html everything inside of the tag, I just want the tag to be rendered as that's all

Importance

would make my life easier

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting submitterneeds a reproduction, or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions