mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-15 06:47:50 +08:00
fix($compile): don't check attr.specified on non-ie7
the specified attribute is depricated and creates warnings in Firefox Closes #3231 Closes #2160
This commit is contained in:
@@ -517,7 +517,7 @@ function $CompileProvider($provide) {
|
||||
for (var attr, name, nName, value, nAttrs = node.attributes,
|
||||
j = 0, jj = nAttrs && nAttrs.length; j < jj; j++) {
|
||||
attr = nAttrs[j];
|
||||
if (attr.specified) {
|
||||
if (!msie || msie >= 8 || attr.specified) {
|
||||
name = attr.name;
|
||||
nName = directiveNormalize(name.toLowerCase());
|
||||
attrsMap[nName] = name;
|
||||
|
||||
Reference in New Issue
Block a user