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 8fde035acb26fa6e3bc3133ddec5ce0dc9d49498..e708395b059e5f71425f6c61f64e00fa077cba35 100644 |
--- a/tools/dom/templates/html/impl/impl_Element.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_Element.darttemplate |
@@ -874,7 +874,6 @@ $if DART2JS |
throw new ArgumentError("Invalid position ${where}"); |
} |
} |
-$endif |
/** |
* Checks if this element matches the CSS selectors. |
@@ -904,6 +903,8 @@ $endif |
} while(includeAncestors && elem != null); |
return false; |
} |
+$else |
+$endif |
$if DART2JS |
@Creates('Null') // Set from Dart code; does not instantiate a native type. |