We are writing two functions here which do almost the same thing, the solution is to change the existing function to return wrapper.firstChild , this will return whatever is in the template as a domNode, without being wrapped in a div or span etc. I will make this change as I am working on this already.