Fix unit test in IE7

This commit is contained in:
Vojta Jina
2011-05-31 21:28:42 +02:00
committed by Igor Minar
parent 2e5199997c
commit aa64d37a23
3 changed files with 5 additions and 4 deletions

View File

@@ -215,7 +215,7 @@ 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))
if (!/ng-\d+/.exec(attr.name) && attr.name != 'getElementById')
attrs.push(' ' + attr.name + '="' + attr.value + '"');
}
}