Letractively / svgweb

Automatically exported from code.google.com/p/svgweb
Other
0 stars 0 forks source link

Make sure ownerDocument defaults to 'document' #384

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago

Original comment by bradneub...@gmail.com on 6 Nov 2009 at 5:43

GoogleCodeExporter commented 8 years ago

Original comment by bradneub...@gmail.com on 10 Nov 2009 at 9:57