Using document.adoptNode on templates.