mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
ecf12f6eee
Snabbdom supports svg, but it adds the namespace at the creation of the virtual node. However, owl works slightly differently: it adds children after creating the parent virtual node. So, we need to actually call the addNS method after the children nodes have been created. As a bonus, this is slightly faster than snabbdom: we only check at template compilation time once if a node is a svg.