Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Unified Diff: tools/dom/templates/html/impl/impl_Element.darttemplate

Issue 24084004: Exposing document.createElement (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 7d5f38d2ada989580749db242bc44094e5dc0162..ecf91d8fe392d8629cef437e66266fb28236bc0b 100644
--- a/tools/dom/templates/html/impl/impl_Element.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Element.darttemplate
@@ -1238,7 +1238,7 @@ $endif
_parseRange = _parseDocument.createRange();
// Workaround for Chrome bug 229142- URIs are not resolved in new doc.
- var base = _parseDocument.$dom_createElement('base');
+ var base = _parseDocument.createElement('base');
base.href = document._baseUri;
_parseDocument.head.append(base);
}
@@ -1246,7 +1246,7 @@ $endif
if (this is BodyElement) {
contextElement = _parseDocument.body;
} else {
- contextElement = _parseDocument.$dom_createElement(tagName);
+ contextElement = _parseDocument.createElement(tagName);
_parseDocument.body.append(contextElement);
}
var fragment;
@@ -1342,7 +1342,7 @@ $if DART2JS
$else
static Element createElement_tag(String tag, String typeExtension) =>
- document.$dom_createElement(tag, typeExtension);
+ document.createElement(tag, typeExtension);
$endif
}
« no previous file with comments | « tools/dom/src/shared_SVGFactoryProviders.dart ('k') | tools/dom/templates/html/impl/impl_HTMLInputElement.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698