jcblw / vsvg

〰️ A minimal virtual svg dom that allows some basic dom Node api methods.
https://www.npmjs.org/package/vsvg
14 stars 1 forks source link

DOM node initialization #12

Closed jcblw closed 9 years ago

jcblw commented 9 years ago

So the DOM node is not being initialized properly, mostly due the the issue that the attributes passed into the initial object never get added to the DOM node in _node property. Eg.

var svg = vsvg.svg( { version: '1.1' } );

svg._node.getAttribute( 'version' ) // undefined