TODO comment for setScopeParentFromDOM