Chromium Code Reviews| Index: sdk/lib/html/src/shared_SVGFactoryProviders.dart |
| diff --git a/sdk/lib/html/src/shared_SVGFactoryProviders.dart b/sdk/lib/html/src/shared_SVGFactoryProviders.dart |
| index a6960b8fc1ff8cacde87e29fa19608893cda4a95..0fd92a4e067bc916a460a3b7ceb701172e614555 100644 |
| --- a/sdk/lib/html/src/shared_SVGFactoryProviders.dart |
| +++ b/sdk/lib/html/src/shared_SVGFactoryProviders.dart |
| @@ -23,11 +23,11 @@ class _SvgElementFactoryProvider { |
| } |
| parentTag.innerHtml = svg; |
| - if (parentTag.children.length == 1) return parentTag.children.removeLast(); |
| + if (parentTag.elements.length == 1) return parentTag.elements.removeLast(); |
|
ahe
2012/12/07 09:14:59
Why change this file?
|
| throw new ArgumentError( |
| - 'SVG had ${parentTag.children.length} ' |
| - 'top-level children but 1 expected'); |
| + 'SVG had ${parentTag.elements.length} ' |
| + 'top-level elements but 1 expected'); |
| } |
| } |