[Bug] SVG ARIA doesn’t work with SSR
- Dominant language
- TypeScript
- Stars
- 67.3k
- Forks
- 19.8k
- Avg merge
- 15h 17m
- Merged PRs (30d)
- 5
Description
### 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
```markdown
- OS: Ubuntu 23.04
- Browser: Node.js
- Framework: Astro
```
### Any additional comments?
_No response_
Contributor guide
Research direction
Start by following the SSR SVG rendering guide and the linked minimal reproduction with aria: { enabled: true } in the Node.js environment. Trace the failing setAttribute call and confirm the result against the expected behavior: SSR should not fail, or its documentation should clearly state that ARIA is unsupported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- accessibility, data-visualization, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100