Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
fix($compile): don't check attr.specified on non-ie7
Browse files Browse the repository at this point in the history
the specified attribute is depricated and creates warnings in Firefox

Closes #3231
Closes #2160
  • Loading branch information
IgorMinar authored and btford committed Aug 12, 2013
1 parent 3a8b3db commit 78efa0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ng/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 78efa0e

Please sign in to comment.