fix build for IE9

all unit tests now pass under IE9
This commit is contained in:
Igor Minar 2011-04-09 00:16:40 -07:00
parent 8e6ecd98ae
commit 9462b556a3
4 changed files with 6 additions and 3 deletions

View file

@ -209,7 +209,7 @@ forEach({
}
},
text: extend(msie
text: extend((msie < 9)
? function(element, value) {
// NodeType == 3 is text node
if (element.nodeType == 3) {

View file

@ -249,7 +249,7 @@ function browserTrigger(element, type) {
element = element.parentNode;
type = 'change';
}
if (msie) {
if (msie < 9) {
switch(element.type) {
case 'radio':
case 'checkbox':

View file

@ -194,6 +194,9 @@ function sortedHtml(element, showNgClass) {
attrs.push(' class="' + className + '"');
}
for(var i=0; i<attributes.length; i++) {
if (i>0 && attributes[i] == attributes[i-1])
continue; //IE9 creates dupes. Ignore them!
var attr = attributes[i];
if(attr.name.match(/^ng:/) ||
attr.value &&

View file

@ -668,7 +668,7 @@ describe("widget", function(){
compile('<a href="">empty link</a>');
if (msie) {
if (msie < 9) {
event = document.createEventObject();
expect(event.returnValue).not.toBeDefined();