3 ms·
Seems pretty cool. The only Cash design decision I’m doubting is $().append not accepting plain text. I get the reason why, but the alternative is ugly. Maybe a
by labster 5y ago
Seems pretty cool. The only Cash design decision I’m doubting is $().append not accepting plain text. I get the reason why, but the alternative is ugly. Maybe add an appendText method, or a utility $.textNode?
I’m kind of assuming the underlying philosophy of the project is to make DOM manipulation as easy as in jQuery but smaller by removing seldom needed safeguards and relying on modern browser selectors. I’m okay with the additional footguns but think it should still preserve easy, concise syntax.
- fabiospampinato 5y agoThat's kind of a mistake of the library IMO, but changing that requires pushing a major release and I'm not sure if it's worth asking everybody to update their code to align that with jQuery at this point.