(vnode, ns)
| 3345 | } |
| 3346 | |
| 3347 | function applyNS (vnode, ns) { |
| 3348 | vnode.ns = ns; |
| 3349 | if (vnode.tag === 'foreignObject') { |
| 3350 | // use default namespace inside foreignObject |
| 3351 | return |
| 3352 | } |
| 3353 | if (vnode.children) { |
| 3354 | for (var i = 0, l = vnode.children.length; i < l; i++) { |
| 3355 | var child = vnode.children[i]; |
| 3356 | if (child.tag && !child.ns) { |
| 3357 | applyNS(child, ns); |
| 3358 | } |
| 3359 | } |
| 3360 | } |
| 3361 | } |
| 3362 | |
| 3363 | /* */ |
| 3364 |