Skip to content

OG rendering SVG title element #88097

@AleksandarDev

Description

@AleksandarDev

Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/cool-darkness-679p3h

To Reproduce

  1. Start the application in development or production mode
  2. Navigate to /opengraph-image

Current vs. Expected behavior

Expect only the SVG to render, not the title element that is there for a11y.

Provide environment information

Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Sun Aug  6 20:05:33 UTC 2023
  Available memory (MB): 4102
  Available CPU cores: 2
Binaries:
  Node: 20.12.1
  npm: 10.5.0
  Yarn: 1.22.19
  pnpm: 8.15.6
Relevant Packages:
  next: 16.1.1-canary.12 // Latest available version is detected (16.1.1-canary.12).
  eslint-config-next: N/A
  react: 19.2.3
  react-dom: 19.2.3
  typescript: 5.9.3
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Not sure

Which stage(s) are affected? (Select all that apply)

Vercel (Deployed), next start (local), next dev (local)

Additional context

We enabled biome checking and fixed reported a11y issues with SVGs missing title by adding the title element to the SVGs. We now see title is rendered in OG.

Image

We have this in production over at www.gredice.com/opengraph-image. Version doesn't seem to be an issue, it was present in 15 too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions