Account for detached elements with no parents