Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Workaround for bug in IE9 where you can't get the value of all proper…
Browse files Browse the repository at this point in the history
…ties
  • Loading branch information
NielsLeenheer committed Jan 19, 2011
1 parent 6a2484d commit 0a5fc8e
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1044,17 +1044,23 @@ <h2>

if (s.length) {
for (var i = 0; i < s.length; i++) {
v = s.getPropertyValue(s[i]);
if (v != '') {
r.push(s[i] + ': ' + v);
}
try {
v = s.getPropertyValue(s[i]);
if (v != '') {
r.push(s[i] + ': ' + v);
}
} catch(e) {
};
}
} else {
for (var i in s) {
v = s.getPropertyValue(i);
if (v != '') {
r.push(i + ': ' + v);
}
try {
v = s.getPropertyValue(i);
if (v != '') {
r.push(i + ': ' + v);
}
} catch(e) {
};
}
}

Expand Down Expand Up @@ -2871,4 +2877,4 @@ <h2>
//-->
</script>
</body>
</html>
</html>

0 comments on commit 0a5fc8e

Please sign in to comment.