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

Fix up some attribute errors #3

Merged
merged 2 commits into from
Jan 16, 2019
Merged

Fix up some attribute errors #3

merged 2 commits into from
Jan 16, 2019

Conversation

sangohan
Copy link
Contributor

@sangohan sangohan commented Aug 27, 2018

  • Make the style attributes work by translating style strings to a style object.
  • Make a map of attributes that are not name the same in dom vs react, and always look up the correct attribute.
  • Trim the text nodes before inserting, as react may not allow whitespace as text nodes for certain kinds of nodes (like colspan in a table - very odd...).

Feel free to cherry pick only changes you want!

I found these changes are required in order to add dom containing styled SVG's (for my specific usecase).

Also, i attribute all copyright to the owner of this repository.

* Make the style attributes work by translating style strings to a style object.
* Make a map of attributes that are not name the same in dom vs react, and always look up the correct attribute.
* Trim the text nodes before inserting, as react may not allow whitespace as text nodes for certain kinds of nodes (like colspan in a table - very odd...).
@HerrZatacke HerrZatacke self-assigned this Aug 27, 2018
HerrZatacke added a commit that referenced this pull request Jan 15, 2019
@HerrZatacke HerrZatacke merged commit e546fc9 into diva-e:master Jan 16, 2019
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

Successfully merging this pull request may close these issues.

2 participants