mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-26 22:35:15 +08:00
Fix failing unit tests in IE7 (Binder, select widget)
The fix does not change any production code, we only need to ignore couple of attributes that IE7 should not display:
* value attribute for LI
* selected attribut for SELECT
Simplified condition in compiler test, this should have been part of f9f0905f4a
This commit is contained in:
@@ -40,7 +40,7 @@ describe('compiler', function(){
|
||||
compiler.compile('<div>A</div><span></span>');
|
||||
}).toThrow("Cannot compile multiple element roots: " + ie("<div>A</div><span></span>"));
|
||||
function ie(text) {
|
||||
return msie && msie < 9 ? uppercase(text) : text;
|
||||
return msie < 9 ? uppercase(text) : text;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user