wip(ssr): use consistent attr key behavior in compiler

This commit is contained in:
Evan You
2020-02-09 13:19:10 -05:00
parent 8874b21a7e
commit 03680399f2
2 changed files with 25 additions and 12 deletions

View File

@@ -57,6 +57,9 @@ export function ssrRenderDynamicAttr(
} else if (isSSRSafeAttrName(attrKey)) {
return ` ${attrKey}="${escapeHtml(value)}"`
} else {
console.warn(
`[@vue/server-renderer] Skipped rendering unsafe attribute name: ${attrKey}`
)
return ``
}
}