Obtener el elemento principal JavaScript
var parent = element.parentElement;
Successful Sandpiper
var parent = element.parentElement;
var x = document.getElementById("myLI").parentNode;
var x = document.getElementById("ID").parentElement.nodeName;
var parent = element.parentElement;
//OR
e.target.parentNode //target parent
<div>
<span onclick="this.parentElement.style.display = 'none';">x</span>
</div>
e.target.parentNode //target parent