An Element.prototype function to get the parent of an element depending on some settings (nodeName, attribute and the value of the attribute)