Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork97
refactor: Regex to sets#398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
|
| HTML_LOWER_CASE, | ||
| HTML_ENUMERATED, | ||
| SVG_CAMEL_CASE, | ||
| SVG_KEBAB_CASE, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Renamed for consistency.
HTML_LOWER_CASE is converting camel-cased names to lower-cased, thereforeSVG_CAMEL_CASE stands out as it's converting camel-cased names to kebab-cased.
Might be marginally faster? Probably easier to maintain at the very least -- easier to tell what properties are being replaced and which aren't.
I did this by comparing against Preact's types, mostly, with a few corrections needed for the SVG types.