Returns the parent node of a given element or shadow root. This function is necessary because shadow roots have no parents but instead have hosts which may have them.
Copy
Returns the parent node of a given element or shadow root. This function is necessary because shadow roots have no parents but instead have hosts which may have them.