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