src/sap.ui.support/src/sap/ui/support/supportRules/ui/external/ElementTree.js
function _findNearestDOMParent(element, parentNodeName) {
			while (element.nodeName !== parentNodeName) {
				if (element.nodeName === "CONTROL-TREE") {
					break;
				}
				element = element.parentNode;
			}

			return element;
		}
function _findNearestDOMParent(element, parentNodeName) {
			while (element.nodeName !== parentNodeName) {
				if (element.nodeName === "CONTROL-TREE") {
					break;
				}
				element = element.parentNode;
			}

			return element;
		}
function _findNearestDOMParent ( element , parentNodeName ) { while ( element . nodeName !== parentNodeName ) { if ( element . nodeName === "CONTROL-TREE" ) { break ; } element = element . parentNode ; } return element ; }
Search for the nearest parent Node.
@param {element} element - HTML DOM element that will be the root of the search
@param {string} parentNodeName - The desired HTML parent element nodeName
@returns {Object} HTML DOM element
@private
Search for the nearest parent Node .