Skip to content

Conversation

darionato
Copy link

I have changed the innerText with the innerHTML for cross browsing compatibility. Firefox always retun 0 offsetwidth using innerText. With innerHtml, Chrome, Firefox and IE are working fine.

I have changed the innerText with the innerHTML for cross browsing compatibility. Firefox always retun 0 offsetwidth using innerText. With innerHtml, Chrome, Firefox and IE are working fine.
@diegocr
Copy link
Contributor

diegocr commented Apr 11, 2014

Nice catch! Have you tried using textContent? it should be more secure than using innerHTML there.

@diegocr diegocr closed this in f3f6261 Sep 18, 2014
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