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

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

Issue 268313002: [dart:html] rename register to registerElement per spec (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 6 years, 7 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
« no previous file with comments | « tests/html/custom_elements_test.dart ('k') | tools/dom/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 98df72e69bd06c9d84c0780b75560bbe6cd62924..d96f6c80affc344d5807fd8724549f110704d787 100644
--- a/tools/dom/templates/html/impl/impl_Document.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Document.darttemplate
@@ -48,8 +48,8 @@ $!MEMBERS
ElementList queryAll(String relativeSelectors) =>
querySelectorAll(relativeSelectors);
- /// Checks if [register] is supported on the current platform.
- bool get supportsRegister {
+ /// Checks if [registerElement] is supported on the current platform.
+ bool get supportsRegisterElement {
$if DART2JS
return JS('bool', '("registerElement" in #)', this);
$else
@@ -57,6 +57,10 @@ $else
$endif
}
+ /// *Deprecated*: use [supportsRegisterElement] instead.
+ @deprecated
+ bool get supportsRegister => supportsRegisterElement;
+
@DomName('Document.createElement')
Element createElement(String tagName, [String typeExtension]) {
$if DART2JS
« no previous file with comments | « tests/html/custom_elements_test.dart ('k') | tools/dom/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698