Skip to content

Commit 30bd34e

Browse files
committed
disable duplicate attribute warning in IE (close #3929)
1 parent ff178cc commit 30bd34e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler/parser/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export function parse (
7979
type: 1,
8080
tag,
8181
attrsList: attrs,
82-
attrsMap: makeAttrsMap(attrs),
82+
attrsMap: makeAttrsMap(attrs, options.isIE),
8383
parent: currentParent,
8484
children: []
8585
}
@@ -429,10 +429,10 @@ function parseModifiers (name: string): Object | void {
429429
}
430430
}
431431

432-
function makeAttrsMap (attrs: Array<Object>): Object {
432+
function makeAttrsMap (attrs: Array<Object>, isIE: ?boolean): Object {
433433
const map = {}
434434
for (let i = 0, l = attrs.length; i < l; i++) {
435-
if (process.env.NODE_ENV !== 'production' && map[attrs[i].name]) {
435+
if (process.env.NODE_ENV !== 'production' && map[attrs[i].name] && !isIE) {
436436
warn('duplicate attribute: ' + attrs[i].name)
437437
}
438438
map[attrs[i].name] = attrs[i].value

0 commit comments

Comments
 (0)