Skip to content

[Bug] SVG ARIA doesn’t work with SSR #19191

@arty-name

Description

@arty-name

Version

5.4.3

Link to Minimal Reproduction

https://jsfiddle.net/t3h9x2zb/5/

Steps to Reproduce

  1. Follow the steps in the guide to set up the SSR SVG rendering
  2. Activate ARIA by setting the option aria: { enabled: true }

Current Behavior

TypeError: Cannot read properties of null (reading 'setAttribute')
at  dom.setAttribute('aria-label', ariaLabel);

Expected Behavior

Should not fail or the SSR documentation should mention that ARIA is not supported

Environment

- OS: Ubuntu 23.04
- Browser: Node.js
- Framework: Astro

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    SSRServer Side RenderingSVGbugenThis issue is in English

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions