Can someone help me with transferring simple HTML content into another DIV? Whenever I try, all I get is [object HTMLDivElement]
. What mistake am I making here?
this.inner = document.querySelector('div[data-v="1"]')
this.tail = document.querySelector('[data-tail]')
this.tail.innerHTML = this.inner
<div data-tail></div>
<div data-v="1">some content</div>