| Index: sdk/lib/html/dart2js/html_dart2js.dart
|
| diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
|
| index 043abe0f23a7c7c0dd8de294a0c4a37a15d862da..3e72c7174db016c9d7acce11f5456bba8c6938a3 100644
|
| --- a/sdk/lib/html/dart2js/html_dart2js.dart
|
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart
|
| @@ -2374,11 +2374,14 @@ class CssStyleDeclaration native "*CSSStyleDeclaration" {
|
| }
|
|
|
| void setProperty(String propertyName, String value, [String priority]) {
|
| - JS('void', '#.setProperty(#, #, #)', this, propertyName, value, priority);
|
| - // Bug #2772, IE9 requires a poke to actually apply the value.
|
| - if (JS('bool', '!!#.setAttribute', this)) {
|
| - JS('void', '#.setAttribute(#, #)', this, propertyName, value);
|
| - }
|
| + // try/catch for IE9 which throws on unsupported values.
|
| + try {
|
| + JS('void', '#.setProperty(#, #, #)', this, propertyName, value, priority);
|
| + // Bug #2772, IE9 requires a poke to actually apply the value.
|
| + if (JS('bool', '!!#.setAttribute', this)) {
|
| + JS('void', '#.setAttribute(#, #)', this, propertyName, value);
|
| + }
|
| + } catch (e) {}
|
| }
|
|
|
| /**
|
|
|