mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00: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:
parent
3a8b3db174
commit
78efa0e36c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue