Clone deep node not working properly

0

I'm trying to duplicate the meta div of a Youtube video page. It's the div below the title div of the video and like and dislike. I want you to have 2 equals, one on top of the other.

But when I use:

original = document.querySelectorAll('#meta');
clone = original[original.length-1].cloneNode(true);
clone.id = "meta1";
original[original.length-1].after(clone);

It duplicates the div, but the information inside it (the children) does not appear.

EXAMPLE

    
asked by anonymous 06.08.2018 / 20:56

0 answers