Message from JavaScript discussions

November 2017

— document.createRange().createContextualFragment(tagString);


Then to insert in live DOM


which moves all the child nodes of the fragment into your element, leaving the fragment empty. You can use myFragment.cloneNode(true); to do a copy instead of move

— Hope that helps

— Awesome

— Hello.. is there a difference between the createcontextualfragment method and createdocumentfragment methob

Message permanent page

— Thank

— Yes

— createContextualFragment parses a tagString into a DocumentFragment while createDocumentFragment creates an empty DocumentFragment and doesn't accept a parameter

Message permanent page

— See MDN for all this and more:

Message permanent page

— Yo guys

— What do you think about this?

— What advantage does it offer over requirejs?
Or ES6 modules alongwith webpack?