Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS custom properties are processed incorrectly #79

Open
jouni opened this issue Oct 28, 2020 · 0 comments
Open

CSS custom properties are processed incorrectly #79

jouni opened this issue Oct 28, 2020 · 0 comments

Comments

@jouni
Copy link

jouni commented Oct 28, 2020

Input HTML string

<div style="--foo: bar;"></div>,

Expected style object output

{ "--foo": "bar"}.

Actual output

{ "-Foo": "bar" }

Relevant part of the code

https://github.com/wrakky/react-html-parser/blob/master/src/utils/inlineStyleToObject.js#L35-L37

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

No branches or pull requests

1 participant