test(ssr): test scopeId handling in vdom serialization

This commit is contained in:
Evan You
2020-01-29 21:13:34 -05:00
parent 9cf4518936
commit 94e80cf6d1
2 changed files with 38 additions and 3 deletions

View File

@@ -222,7 +222,7 @@ function renderElement(
// vnode's own scopeId and the current rendering component's scopeId is
// different - this is a slot content node.
if (treeOwnerId != null && treeOwnerId !== scopeId) {
openTag += ` ${scopeId}-s`
openTag += ` ${treeOwnerId}-s`
}
}