| Index: tools/dom/templates/html/impl/impl_Element.darttemplate
|
| diff --git a/tools/dom/templates/html/impl/impl_Element.darttemplate b/tools/dom/templates/html/impl/impl_Element.darttemplate
|
| index ab587249c4389794546d225f77eef58e10e7e298..a868eb0029d73f463c3165bff9f05a6bf61ea991 100644
|
| --- a/tools/dom/templates/html/impl/impl_Element.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_Element.darttemplate
|
| @@ -1033,13 +1033,12 @@ class _ElementFactoryProvider {
|
|
|
| Element element;
|
| if (temp.children.length == 1) {
|
| - element = temp.$dom_firstChild;
|
| + element = temp.children[0];
|
| } 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();
|
|
|