If an element has already been detached from the DOM, this throws an exception in `testUniqueness`, which assumes that `parentNode` always exists.