Browse Source

fix incorrect unknown element warning (fix #3296)

Evan You 10 years ago
parent
commit
d94f113893
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/platforms/web/util/element.js

+ 3 - 0
src/platforms/web/util/element.js

@@ -76,6 +76,9 @@ export function isUnknownElement (tag: string): boolean {
   if (!inBrowser) {
     return true
   }
+  if (isReservedTag(tag)) {
+    return false
+  }
   tag = tag.toLowerCase()
   /* istanbul ignore if */
   if (unknownElementCache[tag] != null) {