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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 90113002: fix custom elements that extend tags like "section" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: revert whitespace changes Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index 944d6e6dc1088a34428e465730c71cb21b44465b..a5c54438f94e7c2f5dcf91bb9d0c25675f56097b 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -34418,10 +34418,8 @@ void _registerCustomElement(context, document, String tag, Type type,
var options = JS('=Object', '{prototype: #}', proto);
- if (baseClassName != 'HTMLElement') {
- if (extendsTagName != null) {
- JS('=Object', '#.extends = #', options, extendsTagName);
- }
+ if (extendsTagName != null) {
+ JS('=Object', '#.extends = #', options, extendsTagName);
}
JS('void', '#.register(#, #)', document, tag, options);
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698