dbind icon indicating copy to clipboard operation
dbind copied to clipboard

element.innerText not supported in Firefox

Open luis-eduardo opened this issue 10 years ago • 2 comments

Currently Firefox does not support the innerText property for DOM elements. dbind is using it in "ElementBinding.prototype.is" to set the value on the bound element. Could it use innerHTML instead of innerText for cross browser compatibility?

Thanks!

By the way, I'm testing on Firefox 35.0.1 for Linux.

luis-eduardo avatar Feb 10 '15 22:02 luis-eduardo

@luis-eduardo I would assume textContent is actually a better option?

dylans avatar Feb 10 '15 22:02 dylans

I agree, textContent is better.

luis-eduardo avatar Feb 11 '15 01:02 luis-eduardo