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

Converts attributes to lower case #45

Open
utsavk1993 opened this issue May 24, 2018 · 10 comments
Open

Converts attributes to lower case #45

utsavk1993 opened this issue May 24, 2018 · 10 comments

Comments

@utsavk1993
Copy link

If I bind onChange on input tag, it converts to lowercase and ReactJS gives a warning.

Can you fix this?

image

@valentynminaiev
Copy link

I have a same issue with inline styles
My background-image url contains lowercase and uppercase symbols. Rendered styles contain only lowercase symbols.

mfowlewebs added a commit to mfowlewebs/react-html-parser that referenced this issue Jul 2, 2018
This updates the list of react attributes, including things like SVG,
and also removes the down-conversion to lower-case that previously
used to be done.
dcollien added a commit to dcollien/react-html-parser that referenced this issue Nov 8, 2018
Update list of React attributes. Fixes peternewnham#45.
@braco
Copy link

braco commented Dec 11, 2018

Lowercases the tags name as well??

<FooBar> --> <foobar>

@DavidLozzi
Copy link

and my <svg viewbox should be viewBox, thus my SVGs aren't working....

@DavidLozzi
Copy link

I threw a workaround over in #56

@rnersesian
Copy link

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...

@DavidLozzi
Copy link

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>' }}

@george2seven
Copy link

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.

@jerome-diver
Copy link

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 ?

@naivedeveloper95
Copy link

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.

@gihanrangana
Copy link

is that issue fixed? still i got the lowercase issue

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

9 participants