Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snippets don't execute <script> tags #15074

Open
Bilge opened this issue Jan 21, 2025 · 0 comments
Open

Snippets don't execute <script> tags #15074

Bilge opened this issue Jan 21, 2025 · 0 comments

Comments

@Bilge
Copy link

Bilge commented Jan 21, 2025

Describe the bug

If a snippet (created with createRawSnippet()) contains <script> markup, the script doesn't actually execute when @rendered.

Reproduction

https://stackblitz.com/edit/vitejs-vite-eckyyqy7?file=src%2FApp.svelte,src%2Fmain.js&terminal=dev

Logs

System Info

System:
    OS: Linux 5.15 Ubuntu 20.04.3 LTS (Focal Fossa)
    CPU: (8) x64 Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz
    Memory: 7.74 GB / 11.69 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 22.12.0 - /run/user/1000/fnm_multishells/798_1737054649737/bin/node
    Yarn: 1.22.22 - /run/user/1000/fnm_multishells/798_1737054649737/bin/yarn
    npm: 10.9.0 - /run/user/1000/fnm_multishells/798_1737054649737/bin/npm
    pnpm: 10.0.0 - ~/.local/share/pnpm/pnpm
  npmPackages:
    svelte: ^5.0.0 => 5.16.1

Severity

annoyance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant