Even when a node is not attached to the document native behavior is to have
myNode.ownerDocument be set to 'document':
console.log(document.createTextNode('foo').ownerDocument); // prints 'document'
console.log(document.createElementNS(svgns, 'g').ownerDocument); // prints
'document'
Mimic this behavior.
Original issue reported on code.google.com by bradneub...@gmail.com on 5 Nov 2009 at 12:06
Original issue reported on code.google.com by
bradneub...@gmail.com
on 5 Nov 2009 at 12:06