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

Unexpected attribute names conversion to lowercase of dynamic svg element #13878

Closed
ssssota opened this issue Oct 24, 2024 · 0 comments · Fixed by #13935
Closed

Unexpected attribute names conversion to lowercase of dynamic svg element #13878

ssssota opened this issue Oct 24, 2024 · 0 comments · Fixed by #13935
Assignees
Labels

Comments

@ssssota
Copy link
Contributor

ssssota commented Oct 24, 2024

Describe the bug

Attributes of dynamic svg element should preserve case.

<svelte:options namespace="svg" />
<!--viewbox-->
<svelte:element this="svg" viewBox="" />
<!--viewbox-->
<svelte:element this="svg" xmlns="http://www.w3.org/2000/svg" viewBox="" />
<!--viewBox-->
<svg viewBox="" />

should be rendered

<svg viewBox>
<svg viewBox>
<svg viewBox>

But,

<svg viewbox>
<svg viewbox>
<svg viewBox>

ref. ssssota/svelte-exmarkdown#272

Reproduction

https://svelte.dev/playground/21357a40ffb247698d1fb3b07d17ec3b?version=5.1.0

image

Logs

No response

System Info

System:
    OS: macOS 14.7
    CPU: (8) arm64 Apple M1
    Memory: 650.77 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.14.0 - ~/.local/share/mise/installs/node/lts/bin/node
    npm: 10.7.0 - ~/.local/share/mise/installs/node/lts/bin/npm
    pnpm: 9.12.2 - ~/.local/share/mise/installs/node/lts/bin/pnpm
    bun: 0.5.1 - ~/.bun/bin/bun
  Browsers:
    Chrome: 130.0.6723.69
    Safari: 18.0.1
  npmPackages:
    svelte: ^5.0.4 => 5.0.4

Severity

annoyance

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

Successfully merging a pull request may close this issue.

3 participants