Description
Duplicates
- I have searched the existing issues
Latest version
- I have tested the latest version
Current behavior 😯
SolidJS renders the content of <noscript>
tags on the client. This results into unwanted behavior like styles defined inside <noscript>
tags being applied, even if scripting is turned on in the browser.
Expected behavior 🤔
SolidJS should (probably?) only render the content of <noscript>
tags on the server and omit it's content when rendered on the client.
I've looked at React to have something comparable and they seem to do exactly this. I found a related pr.
Steps to reproduce 🕹
https://playground.solidjs.com/anonymous/0a47d0fd-aef4-403c-9f4d-0ceb2821199b
🚨 Make sure to open this playground with a chromium or webkit based browser, on gecko (firefox), this seems to work as intended.
The <h1>
element gets the styles that are contained inside <noscript>
applied, but this shouldn't happen because our browser has scripting turned on and should ignore <noscript>
tags.
Context 🔦
While this seems like a non issue in client side only solid apps, this is a problem in apps that render both on the server and on the client.
Your environment 🌎
No response