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(css-shim): Replaced innerHTML with textContent #1892

Merged
merged 3 commits into from
Sep 26, 2019

Conversation

sj0x55
Copy link

@sj0x55 sj0x55 commented Sep 25, 2019

Issue: #1891

Instead of using innerHTML, would be better to use textContent property.
The textContent works properly on all browsers and is more performant (does not parse HTML, and is faster). style tag does not contains HTML. So seems to be using textContent is more appropriate.

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.

None yet

2 participants