Index: tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate |
diff --git a/tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate b/tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate |
index 9be746a5621c8e4f04561b798ea3d1410d4339bf..dd2e6e4b05388f85bb05a3d7da8e07c0bfb249dd 100644 |
--- a/tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate |
@@ -8,6 +8,11 @@ part of $LIBRARYNAME; |
$(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
$!MEMBERS |
+ |
+$if DART2JS |
+ @DomName('Document.body') |
+ BodyElement body; |
+$else |
@DomName('Document.body') |
BodyElement get body => $dom_body; |
@@ -15,6 +20,7 @@ $!MEMBERS |
void set body(BodyElement value) { |
$dom_body = value; |
} |
+$endif |
@DomName('Document.caretRangeFromPoint') |
Range caretRangeFromPoint(int x, int y) { |