| 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 1fbd92a913fd1698ceed09959695ee1ef8be9142..38d1e98ce1e025ac677554ea8c352662f9979429 100644
|
| --- a/sdk/lib/html/dartium/html_dartium.dart
|
| +++ b/sdk/lib/html/dartium/html_dartium.dart
|
| @@ -10515,12 +10515,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();
|
|
|