function getElement(element) {
	let target = null;

	if (element !== "undefined") {
		if (typeof element === "string") {
			target = globalThis.document.getElementById(element);
		} else if (
			typeof element === "object" &&
			element.nodeType === Node.ELEMENT_NODE
		) {
			target = element;
		}
	}

	// fallback, if invalid target or non HTMLElement object
	if (!target) {
		//default to document.body
		target = globalThis.document.body;
	}

	return target;
}
return the DOM element for the given element name or HTMLElement object
@memberof device
@param {string|HTMLElement} element - the parent element name or a HTMLElement object
@returns {HTMLElement} the corresponding DOM Element or null if not existing