| 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 58c7c45658a7e022208948432f64940301985d53..aa4f58fd5fc92a2505e9c73e6cd62d299b6895e9 100644
|
| --- a/sdk/lib/html/dart2js/html_dart2js.dart
|
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart
|
| @@ -9934,12 +9934,13 @@ class _ElementFactoryProvider {
|
|
|
| Element element;
|
| if (temp.children.length == 1) {
|
| - element = temp.children[0];
|
| + element = temp.$dom_firstChild;
|
| } else if (parentTag == 'html' && temp.children.length == 2) {
|
| // In html5 the root <html> tag will always have a <body> and a <head>,
|
| // even though the inner html only contains one of them.
|
| element = temp.children[tag == 'head' ? 0 : 1];
|
| } else {
|
| + // Throw an exception because too many children.
|
| _singleNode(temp.children);
|
| }
|
| element.remove();
|
|
|