I want to make a parent element. I have this elements, that contain tags and text. As comment I wrote what`s the type of error I become:
var type=document.getElementsByClassName("Aut");
console.log(type); //All elements are shown
var parNode=type.parentNode;
for(var el=parNode.firstChild; el; el=el.nextSibling) {...}
//var el=parNode.firstChild,parNode is not defined
It would be very kind, if someone explain me why this is so.