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 f263b294eb1ee2a1759c6c2be4387c5ea4c61773..22de38f736857acf14cbf37bc8994f66008675dc 100644 |
--- a/tools/dom/templates/html/impl/impl_Element.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_Element.darttemplate |
@@ -813,7 +813,13 @@ $endif |
@DomName('Element.localName') |
@DocsEditable() |
+$if DART2JS |
+ @Returns('String') |
+ // Non-null for Elements. |
+ String get localName => JS('String', '#', _localName); |
+$else |
String get localName => _localName; |
+$endif |
/** |
* A URI that identifies the XML namespace of this element. |