aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Minar2011-04-09 00:16:40 -0700
committerIgor Minar2011-04-09 00:16:44 -0700
commit9462b556a31efbe1560c5086326c80a6e9e39f87 (patch)
treea3542f6e894906eef2b0c7d9ae57bb741d6fdd7e
parent8e6ecd98ae5ef24a7398aee19c006b9dda5385ff (diff)
downloadangular.js-9462b556a31efbe1560c5086326c80a6e9e39f87.tar.bz2
fix build for IE9
all unit tests now pass under IE9
-rw-r--r--src/jqLite.js2
-rw-r--r--src/scenario/Scenario.js2
-rw-r--r--test/testabilityPatch.js3
-rw-r--r--test/widgetsSpec.js2
4 files changed, 6 insertions, 3 deletions
diff --git a/src/jqLite.js b/src/jqLite.js
index 6539aaab..ab4674fe 100644
--- a/src/jqLite.js
+++ b/src/jqLite.js
@@ -209,7 +209,7 @@ forEach({
}
},
- text: extend(msie
+ text: extend((msie < 9)
? function(element, value) {
// NodeType == 3 is text node
if (element.nodeType == 3) {
diff --git a/src/scenario/Scenario.js b/src/scenario/Scenario.js
index a70948cc..87dad5b5 100644
--- a/src/scenario/Scenario.js
+++ b/src/scenario/Scenario.js
@@ -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':
diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js
index b5c2c3f4..0cc85a8c 100644
--- a/test/testabilityPatch.js
+++ b/test/testabilityPatch.js
@@ -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 &&
diff --git a/test/widgetsSpec.js b/test/widgetsSpec.js
index 4fb85c36..8d3e0456 100644
--- a/test/widgetsSpec.js
+++ b/test/widgetsSpec.js
@@ -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();