aboutsummaryrefslogtreecommitdiffstats
path: root/test/testabilityPatch.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/testabilityPatch.js')
-rw-r--r--test/testabilityPatch.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js
index 121d6900..b44a2dac 100644
--- a/test/testabilityPatch.js
+++ b/test/testabilityPatch.js
@@ -223,7 +223,12 @@ function sortedHtml(element, showNgClass) {
attr.name !='style' &&
attr.name.substr(0, 6) != 'jQuery') {
// in IE we need to check for all of these.
- if (!/ng-\d+/.exec(attr.name) && attr.name != 'getElementById')
+ if (!/ng-\d+/.exec(attr.name) &&
+ attr.name != 'getElementById' &&
+ // IE7 has `selected` in attributes
+ attr.name !='selected' &&
+ // IE7 adds `value` attribute to all LI tags
+ (node.nodeName != 'LI' || attr.name != 'value'))
attrs.push(' ' + attr.name + '="' + attr.value + '"');
}
}