Dissecting the JQuery text method(elegantcode.com)
submitted by
cwbrandsma(1711) 2 years, 7 months ago
An interesting question came up at work today. We had some existing code that was using the innerText dom method. It worked fine on IE, but not on Firefox (to be clear, I’m used to that working the other way around). If you look at QuirksMode you will see Firefox is the only browser that does not support this method as well. Turns out if you use innerText on any dom element in IE you will get the text inside the element (in this case a span tag), but in Firefox you just get nothing. Time to see how JQuery does what it does. read more...
|category: jQuery
|Views: 247
tags:
jQuery another
Everyones tags:
Your Tags: