react-html-parser
react-html-parser copied to clipboard
Converts attributes to lower case
If I bind onChange on input tag, it converts to lowercase and ReactJS gives a warning.
Can you fix this?
I have a same issue with inline styles
My background-image
url contains lowercase and uppercase symbols. Rendered styles contain only lowercase symbols.
Lowercases the tags name as well??
<FooBar> --> <foobar>
and my <svg viewbox
should be viewBox, thus my SVGs aren't working....
I threw a workaround over in https://github.com/wrakky/react-html-parser/issues/56
and my <svg viewbox should be viewBox, thus my SVGs aren't working....
Same here, what I did is adding an attribute viewBox with viewbox's value. If someone has a better a solution...
I ended up skipping this library altogether, there were too many issues with the SVG, and just setting the content like:
dangerouslySetInnerHTML={{ __html: '<svg>...</svg>' }}
I've used svg-to-jsx library to convert first to jsx and then run it by this one. All of the properties are read correctly except "preserveaspectratio" which is reverted back to lowercase.
Same for "textarea" tag name, it does hit up a warning to use "defaultValue" attribute, but impossible to get "defaultValue", instead it is "defaultvalue" after parsed. critical error from two years ago already.
Do someone know an other html parser library still maintained and not to much bugged ?
I have the same issue with inline styles My
background-image
URL contains lowercase and uppercase symbols. Rendered styles contain only lowercase symbols.
Did you issue get fixed? I am facing the same issue now.
is that issue fixed? still i got the lowercase issue