Skip to content

Commit

Permalink
disable duplicate attr warning in Edge (fix #5394)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Apr 10, 2017
1 parent 682141f commit 7497723
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/compiler/parser/index.js
Expand Up @@ -5,8 +5,8 @@ import { parseHTML } from './html-parser'
import { parseText } from './text-parser'
import { parseFilters } from './filter-parser'
import { cached, no, camelize } from 'shared/util'
import { isIE, isServerRendering } from 'core/util/env'
import { genAssignmentCode } from '../directives/model'
import { isIE, isEdge, isServerRendering } from 'core/util/env'

import {
addProp,
Expand Down Expand Up @@ -533,7 +533,10 @@ function parseModifiers (name: string): Object | void {
function makeAttrsMap (attrs: Array<Object>): Object {
const map = {}
for (let i = 0, l = attrs.length; i < l; i++) {
if (process.env.NODE_ENV !== 'production' && map[attrs[i].name] && !isIE) {
if (
process.env.NODE_ENV !== 'production' &&
map[attrs[i].name] && !isIE && !isEdge
) {
warn('duplicate attribute: ' + attrs[i].name)
}
map[attrs[i].name] = attrs[i].value
Expand Down

0 comments on commit 7497723

Please sign in to comment.