| Index: lib/html/templates/html/impl/impl_Element.darttemplate
|
| diff --git a/lib/html/templates/html/impl/impl_Element.darttemplate b/lib/html/templates/html/impl/impl_Element.darttemplate
|
| index 6371020d6e2017ad27a924af6c93bae9393c69fe..2b78504b5ab88b794ce226f09c96ba4e9267c262 100644
|
| --- a/lib/html/templates/html/impl/impl_Element.darttemplate
|
| +++ b/lib/html/templates/html/impl/impl_Element.darttemplate
|
| @@ -836,7 +836,7 @@ class _ElementFactoryProvider {
|
| };
|
|
|
| /** @domName Document.createElement */
|
| - factory Element.html(String html) {
|
| + static Element createElement_html(String html) {
|
| // TODO(jacobr): this method can be made more robust and performant.
|
| // 1) Cache the dummy parent elements required to use innerHTML rather than
|
| // creating them every call.
|
| @@ -875,8 +875,10 @@ class _ElementFactoryProvider {
|
| $if DART2JS
|
| // Optimization to improve performance until the dart2js compiler inlines this
|
| // method.
|
| - factory Element.tag(String tag) native "return document.createElement(tag)";
|
| + static Element createElement_tag(String tag)
|
| + native "return document.createElement(tag)";
|
| $else
|
| - factory Element.tag(String tag) => _document.$dom_createElement(tag);
|
| + static Element createElement_tag(String tag) =>
|
| + _document.$dom_createElement(tag);
|
| $endif
|
| }
|
|
|