Index: lib/html/templates/html/impl/impl_DocumentFragment.darttemplate |
diff --git a/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate b/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate |
index 229d58279eed495e8064d137666c864869a30b7b..7fc2d55742760fb7d1f481b3f80ced53f2a527bc 100644 |
--- a/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate |
+++ b/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate |
@@ -15,6 +15,10 @@ class _FilteredElementList implements List { |
List<Element> get _filtered => |
new List.from(_childNodes.filter((n) => n is Element)); |
+ bool contains(Element element) { |
+ return element is Element && _childNodes.contains(element); |
+ } |
+ |
void forEach(void f(Element element)) { |
_filtered.forEach(f); |
} |