snabbdom / snabbdom

A virtual DOM library with focus on simplicity, modularity, powerful features and performance.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Curiostity] Why is NS added for all children of an SVG?

AdamJaggard opened this issue · comments

The NS attribute is set recursively for all children of an SVG element[0] and not just the SVG element itself. Is there an optimisation somewhere during patching that this helps with? just curious as I noticed it on all the vNodes when converting an SVG element to a vNode tree.

[0]

export function addNS(