Allow rendering forbidden tags on the server (#3425)

This commit is contained in:
Sergii Naumov 2016-08-11 18:25:59 +02:00 committed by Evan You
parent 543ff97487
commit ea77ac28f5

View File

@ -85,7 +85,7 @@ export function parse (
element.ns = ns
}
if (isForbiddenTag(element)) {
if (process.env.VUE_ENV !== 'server' && isForbiddenTag(element)) {
element.forbidden = true
process.env.NODE_ENV !== 'production' && warn(
'Templates should only be responsbile for mapping the state to the ' +