Matt-Esch / virtual-dom

A Virtual DOM and diffing algorithm
MIT License
11.65k stars 780 forks source link

properties aren't all added to element. #452

Closed netbofia closed 5 years ago

netbofia commented 5 years ago

For example:

   { xmlns: 'http://www.w3.org/2000/svg',
     'xmlns:xlink': 'http://www.w3.org/1999/xlink',
     width: '500',
     height: '272.82',
     viewBox: '0,3.574,100,54.564' },

viewBox and xmlns properties are lost

jamesamcl commented 5 years ago

Use svg rather than h

See https://github.com/Matt-Esch/virtual-dom/blob/master/virtual-hyperscript/test/svg.js for an example.

netbofia commented 5 years ago

Wow thanks very must this just solved my problem. Not sure if this closes the issue but its a simple fix.