For instance, I have the following code
<div class="parent>
<p> Item 1 </p>
<p> Item 1 </p>
<p> Item 1 </p>
</div>
I want turn the code above into the following code with pure javascript
<div class="parent>
<div class="parent-child>
<p> Item 1 </p>
<p> Item 1 </p>
<p> Item 1 </p>
</div>
</div>