Index: tools/dom/templates/html/dart2js/html_dart2js.darttemplate |
diff --git a/tools/dom/templates/html/dart2js/html_dart2js.darttemplate b/tools/dom/templates/html/dart2js/html_dart2js.darttemplate |
index b1869f6233f783f21c6b8582a69c741f962ad4e2..a8ef59fb980431f5c84f45509b6e9a24495c48a7 100644 |
--- a/tools/dom/templates/html/dart2js/html_dart2js.darttemplate |
+++ b/tools/dom/templates/html/dart2js/html_dart2js.darttemplate |
@@ -116,7 +116,8 @@ HtmlDocument get document => JS('HtmlDocument', 'document'); |
// Workaround for tags like <cite> that lack their own Element subclass -- |
// Dart issue 1990. |
-class HtmlElement extends Element native "HTMLElement" { |
+@Native("HTMLElement") |
+class HtmlElement extends Element { |
factory HtmlElement() { throw new UnsupportedError("Not supported"); } |
/** |
@@ -130,7 +131,8 @@ class HtmlElement extends Element native "HTMLElement" { |
// EntryArray type was removed, so explicitly adding it to allow support for |
// older Chrome versions. |
// Issue #12573. |
-abstract class _EntryArray implements List<Entry> native "EntryArray" {} |
+@Native("EntryArray") |
+abstract class _EntryArray implements List<Entry> {} |
/** |
* Spawn a DOM isolate using the given URI in the same window. |