Chromium Code Reviews| 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 58c63f52d6e535a4761bafab31b82fd3f175242f..a93f8b909a4785561287cce3aed7a9cf6d545bc0 100644 |
| --- a/tools/dom/templates/html/impl/impl_Element.darttemplate |
| +++ b/tools/dom/templates/html/impl/impl_Element.darttemplate |
| @@ -1028,7 +1028,7 @@ $if DART2JS |
| // Optimization to improve performance until the dart2js compiler inlines this |
| // method. |
| static dynamic createElement_tag(String tag) => |
| - JS('Element', 'document.createElement(#)', tag); |
| + JS('Element|Function', 'document.createElement(#)', tag); |
|
sra1
2013/02/04 22:46:37
I'd write
// Firefox may return a JavaScript func
|
| $else |
| static Element createElement_tag(String tag) => |
| document.$dom_createElement(tag); |