Chromium Code Reviews| Index: tools/dom/templates/html/impl/impl_Document.darttemplate |
| diff --git a/tools/dom/templates/html/impl/impl_Document.darttemplate b/tools/dom/templates/html/impl/impl_Document.darttemplate |
| index 90c3dfa6b00752da11cdb4e0418a97e4e55e38a5..072a276e032fa50639694cf3d2cfafd7638a613d 100644 |
| --- a/tools/dom/templates/html/impl/impl_Document.darttemplate |
| +++ b/tools/dom/templates/html/impl/impl_Document.darttemplate |
| @@ -36,4 +36,17 @@ $else |
| return true; |
| $endif |
| } |
| + |
| + @DomName('Document.createElement') |
| + Element createElement(String tagName, [String typeExtension]) { |
| +$if DART2JS |
| + return _createElement(tagName, typeExtension); |
| +$else |
| + if (typeExtension != null) { |
| + return _createElement(tagName, typeExtension); |
| + } else { |
|
vsm
2013/09/25 22:27:40
Can you add a comment here to note that this is a
blois
2013/09/25 22:50:44
Done.
|
| + return _Utils.createElement(this, tagName); |
| + } |
| +$endif |
| + } |
| } |