Index: sdk/lib/svg/dart2js/svg_dart2js.dart |
diff --git a/sdk/lib/svg/dart2js/svg_dart2js.dart b/sdk/lib/svg/dart2js/svg_dart2js.dart |
index ce9297a98dc52b7af3339db82841900bd1cbe153..1a282b3b5d16a5a01be6d0af60e78c534b5038cf 100644 |
--- a/sdk/lib/svg/dart2js/svg_dart2js.dart |
+++ b/sdk/lib/svg/dart2js/svg_dart2js.dart |
@@ -34,11 +34,11 @@ class _SvgElementFactoryProvider { |
} |
parentTag.innerHtml = svg; |
- if (parentTag.elements.length == 1) return parentTag.elements.removeLast(); |
+ if (parentTag.children.length == 1) return parentTag.children.removeLast(); |
throw new ArgumentError( |
- 'SVG had ${parentTag.elements.length} ' |
- 'top-level elements but 1 expected'); |
+ 'SVG had ${parentTag.children.length} ' |
+ 'top-level children but 1 expected'); |
} |
} |