Javascript: I have the DOM representation of a node (element or document) and I\'m looking for the string representation of it. E.g.,
var el = document.creat
If your element has parent
element.parentElement.innerHTML