mdn / mdn/content

List all globally allowed attributes for SVG elements

Open
#41,747 0 comments 0 reactions 0 assignees View on GitHub
Content:SVG effort: large
Dominant language
Markdown
Stars
11k
Forks
23.2k
Avg merge
2d 9h
Merged PRs (30d)
331

Description

### MDN URL

https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/svg#attributes

### What specific section or headline is this issue about?

Attributes

### What information was incorrect, unhelpful, or incomplete?

On the pages for SVG elements, such as [`

`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/div#attributes)) have something along the lines of:

> This element's attributes include the [global attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes).

This is missing on the SVG element pages, and there isn't an obvious page to link to for SVG elements, as they only support a subset of the global attributes.

### What did you expect to see?

I came here to see if ARIA-attributes were supported on SVG elements. I couldn't find this in the documentation, so I had to go to the [specification](https://svgwg.org/svg2-draft/struct.html#SVGElement) to see that they were supported.

It would also be good to know if `id`, `class`, etc, are supported.

### Do you have any supporting links, references, or citations?

`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.