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 a12bb8e7cfd9b64d4078dcc69f2fcb1300d53cc7..bd5a30e4a378e5fd2dc5bb2a8ddddd7e5e959948 100644 |
--- a/sdk/lib/html/dart2js/html_dart2js.dart |
+++ b/sdk/lib/html/dart2js/html_dart2js.dart |
@@ -39640,8 +39640,9 @@ class _SvgNodeValidator implements NodeValidator { |
} |
// Firefox 37 has issues with creating foreign elements inside a |
// foreignobject tag as SvgElement. We don't want foreignobject contents |
- // anyway, so just remove the whole tree outright. |
- if (element is svg.ForeignObjectElement) { |
+ // anyway, so just remove the whole tree outright. And we can't rely |
+ // on IE recognizing the SvgForeignObject type, so go by tagName. Bug 23144 |
+ if (element is svg.SvgElement && element.tagName == 'foreignObject') { |
return false; |
} |
if (element is svg.SvgElement) { |