Index: tools/dom/templates/html/impl/impl_HTMLSelectElement.darttemplate |
diff --git a/tools/dom/templates/html/impl/impl_HTMLSelectElement.darttemplate b/tools/dom/templates/html/impl/impl_HTMLSelectElement.darttemplate |
index 396ffcda5fbe92e092ab6e8f983e099854d05fd1..2d39452c2a50b18d4e033e8b834a547f5397ffa9 100644 |
--- a/tools/dom/templates/html/impl/impl_HTMLSelectElement.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_HTMLSelectElement.darttemplate |
@@ -10,8 +10,8 @@ $!MEMBERS |
// Override default options, since IE returns SelectElement itself and it |
// does not operate as a List. |
List<OptionElement> get options { |
- var options = new List<OptionElement>.from(this.querySelectorAll('option')); |
- return new UnmodifiableListView(options); |
+ var options = this.querySelectorAll<OptionElement>('option'); |
+ return new UnmodifiableListView(options.toList()); |
} |
List<OptionElement> get selectedOptions { |