I'm looking at MDN and W3C resources to find out what exactly is ownerDocument
and how it works?
As I tested in any condition node.ownerDocument == window.document
. So when this property is not window.document
?
Can you explain it?
One way is if the node was obtained from an iframe or secondary browser window.
Another way is if it's a node from an XML document obtained from an HTTP source via AJAX.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With