4 ms·
This looks great!! Will have to peek at it more myself. As you can tell, I'm a vanilla fan myself. Although I do think the DOM is still unnecessarily verbose -
by marknadal 10y ago
This looks great!! Will have to peek at it more myself.
As you can tell, I'm a vanilla fan myself. Although I do think the DOM is still unnecessarily verbose - that aside, `innerText` still is not cross browser, so for that reason alone I recommend jQuery `$("#id").text("foo")` to discourage use of `.innerHTML` :( .
- duderific 10y agoTo my mind, using innerHTML is far better than including a 32K library just to avoid using it.
- Rumudiez 10y agoWhy is innerText not cross browser? According to caniuse it's been in every major version of every popular browser for over a year.[0] [0] http://caniuse.com/#search=innerText http://caniuse.com/#search=innerText
- marknadal 10y agoOh hmmm, I thought I tried it just the other month and it wasn't working. Maybe I hadn't updated IE, but I thought it was the whole Edge/11 split problem. Thanks for correcting me!