createTemplateFromElement will need to use this internally