-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
Tag attributes are getting converted to lower case #67
Comments
@matthewnitschke Can you help me reproduce your case? See Repl.it (click |
Ah, it appears as though my problem is only repeatable when using custom react components within the parse string. Correct me if I am wrong but I don't think this library is meant to handle that case |
Yes, that's correct. This library only parses HTML strings and not JSX strings to React elements. I recommend using the |
Alright, thank you for your help |
When parsing a dom element with mixed case attribute names, the resulting react module has both the component name and attribute names to lower case. I understand the component name getting set to lower case is mentioned in #62, but the attributes also getting set to lowercase seems like a bug due to this line: https://github.com/remarkablemark/html-react-parser/blob/97d6868/index.js#L5 which specifically specifies to not lowercase attribute names.
Is a bug in
htmlparser2
? or is there some issue with this module?The text was updated successfully, but these errors were encountered: