Skip to content

Full page refresh results in <path> element being placed outside of <svg> #16768

@shivan-eyespace

Description

@shivan-eyespace

Describe the bug

When I perform a full page refresh, some path gets added to the DOM outside of the svg.

I am wondering if anyone has got this problem (or if I'm doing something very wrong).

I am trying to work on a reproduction as I can't share the exact code for obvious resions, but I am not able to reproduce this this with svelte playground.

Reproduction

Tried Reproducing with a playground.

Logs

nil

System Info

System:
    OS: macOS 15.6.1
    CPU: (12) arm64 Apple M3 Pro
    Memory: 2.20 GB / 36.00 GB
    Shell: 3.7.0 - /usr/local/bin/fish
  Binaries:
    Node: 24.4.1 - /opt/homebrew/bin/node
    npm: 11.6.0 - /opt/homebrew/bin/npm
    pnpm: 10.12.4 - /opt/homebrew/bin/pnpm
  Browsers:
    Chrome: 140.0.7339.133
    Edge: 140.0.3485.66
    Safari: 18.6
  npmPackages:
    svelte: ^5.38.1 => 5.38.1

Severity

annoyance

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