Reorganize SVG attributes in the style of HTML attributes #9462
Labels
data:svg 🖌️
Compat data for SVG features. https://developer.mozilla.org/docs/Web/SVG
idle 🐌
Issues and pull requests with no recent activity
question ❔
Issues where a question or problem is stated and a discussion is held to gather opinions.
SVG element attributes are organized in a different way from HTML element attributes. Many SVG attributes are recorded as
svg.attributes.<category>.<attribute>
while others are recorded assvg.elements.<element>.<attribute>
. Some are recorded in both places. This is confusing and leads to duplicate or mismatched data.Instead, I propose we adopt the somewhat more consistent pattern of HTML element attributes for SVG attribute data:
svg.elements.<attribute>
for attributes which apply to a single element andsvg.global_attributes.<attribute>
for attributes which are not element-specific.If we were to do this, we'd probably need to
I don't think this is particularly high priority at the moment, but if we could agree on an approach in general, then we could leave it open as an effort that the community could pick up incrementally.
Inspired by #9402.
The text was updated successfully, but these errors were encountered: