reference ownerDocument instead of global document in moveCleanedNodesToContainerElement