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