Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Fix attribute hyphenation #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

johannesvollmer
Copy link

No description provided.

@johannesvollmer johannesvollmer changed the title make the attribute test fail & upgrade test package Fix attribute hyphenation [WIP] Oct 21, 2022
all attributes that require it, are already hyphenated correctly.
@johannesvollmer
Copy link
Author

johannesvollmer commented Oct 21, 2022

proposing breaking change: never hyphenate.
all attributes that require it, are already hyphenated correctly.

In SVG, it is completely random whether an attribute is hyphenated or not. therefore, it is the responsibility of the attribute to pass the correctly hyphenated or camelCase string.

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute#svg_attributes_a_to_z

@johannesvollmer johannesvollmer changed the title Fix attribute hyphenation [WIP] Fix attribute hyphenation Oct 21, 2022
@johannesvollmer
Copy link
Author

the tests pass when simply removing the hyphenation call

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant