Skip to content

Commit 7497723

Browse files
committed
disable duplicate attr warning in Edge (fix vuejs#5394)
1 parent 682141f commit 7497723

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/compiler/parser/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { parseHTML } from './html-parser'
55
import { parseText } from './text-parser'
66
import { parseFilters } from './filter-parser'
77
import { cached, no, camelize } from 'shared/util'
8-
import { isIE, isServerRendering } from 'core/util/env'
98
import { genAssignmentCode } from '../directives/model'
9+
import { isIE, isEdge, isServerRendering } from 'core/util/env'
1010

1111
import {
1212
addProp,
@@ -533,7 +533,10 @@ function parseModifiers (name: string): Object | void {
533533
function makeAttrsMap (attrs: Array<Object>): Object {
534534
const map = {}
535535
for (let i = 0, l = attrs.length; i < l; i++) {
536-
if (process.env.NODE_ENV !== 'production' && map[attrs[i].name] && !isIE) {
536+
if (
537+
process.env.NODE_ENV !== 'production' &&
538+
map[attrs[i].name] && !isIE && !isEdge
539+
) {
537540
warn('duplicate attribute: ' + attrs[i].name)
538541
}
539542
map[attrs[i].name] = attrs[i].value

0 commit comments

Comments
 (0)