by StreamingCat · 3y ago · 0 comments
The closest you would get is this: https://developer.mozilla.org/en-US/docs/Web/API/Element/ins... But the jQuery prepend/append functions are still easier to read and shorter to write.
Interesting the article uses innerHtml in its helper function, jQuery's .html() method itself includes the comment "See if we can take a shortcut and just use innerHTML"
https://github.com/jquery/jquery/blob/4a13266efd262a92f05d86...