export default function contains(root: Node | null | undefined, n?: Node) {
if (!root) {
return false;
}
// Use native if support
if (root.contains) {
return root.contains(n);