3 ms·
I had exactly such a collection of DOM utility functions and was glad to give it up. For example, rooting around in element.className was never very enjoyable.
by flomo 13y ago
I had exactly such a collection of DOM utility functions and was glad to give it up. For example, rooting around in element.className was never very enjoyable. Also, the site does not show handling null cases which adds more code.
- nostrademons 13y agoYou have element.classList on all modern browsers now: http://caniuse.com/#search=classList http://caniuse.com/#search=classList It used to be that the first thing I'd reach for when building a prototype was JQuery off a CDN, but now I find that more and more of what I use JQuery for is built into the browser, and in my last few prototypes I've just stopped including it at all because I don't need it.
- nswanberg 13y agoDid anyone ever take you up on your hackathon idea? https://news.ycombinator.com/item?id=6645426 https://news.ycombinator.com/item?id=6645426
- nostrademons 13y agoNope, I didn't hear anything further on it. Still seems like an interesting event to me, though finding time might be hard. (FWIW, we do similar things within my employer all the time.)
- nswanberg 13y agoThat's too bad. But as with all things it takes time and organization in addition to some willing victims. "Similar things" as in hackathons for fun, or hackathons structured to test out different approaches and tech?
- nostrademons 13y agoHackathons (really, prototypes) structured to test out different approaches.
- untog 13y agoExcept Android 2.3 and below. Compatibility issues still exist.