This change fixes the delegation so that element types, including attributes and text nodes, correctly identify as being part of the same owning document.
Note that whilst this fixes the consistency of some cloned elements, a comprehensive fix of cloning is beyond what can be achieved within this change and requires a broader review.
This change fixes the delegation so that element types, including attributes and text nodes, correctly identify as being part of the same owning document.
Note that whilst this fixes the consistency of some cloned elements, a comprehensive fix of cloning is beyond what can be achieved within this change and requires a broader review.