Skip to content

Cross browsing compatibility getTextDimension() #235

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

Closed
wants to merge 1 commit into from

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