Index: sdk/lib/svg/dartium/svg_dartium.dart |
diff --git a/sdk/lib/svg/dartium/svg_dartium.dart b/sdk/lib/svg/dartium/svg_dartium.dart |
index 7ee4b89b55935ce9c18ecd21028b0d3ef9fd2f88..8da06e2ae7ebbba7e5727ccbf477645a1bcaa1b6 100644 |
--- a/sdk/lib/svg/dartium/svg_dartium.dart |
+++ b/sdk/lib/svg/dartium/svg_dartium.dart |
@@ -35,11 +35,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'); |
} |
} |