Index: sdk/lib/html/dartium/html_dartium.dart |
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart |
index a73c6a989ea7887b9c031a84f7003a0d4c3447f5..348a860ad4a756c7c3afe5d8e8540302e93ba0f3 100644 |
--- a/sdk/lib/html/dartium/html_dartium.dart |
+++ b/sdk/lib/html/dartium/html_dartium.dart |
@@ -40420,9 +40420,8 @@ 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. 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') { |
+ // anyway, so just remove the whole tree outright. |
+ if (element is svg.ForeignObjectElement) { |
return false; |
} |
if (element is svg.SvgElement) { |