| 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 5d8210b1d089182ebad5c46afa39571d778b01d7..b2378a23472b6e10cb4542ab5e90ab1850e3a09a 100644
|
| --- a/tools/dom/templates/html/impl/impl_HTMLSelectElement.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_HTMLSelectElement.darttemplate
|
| @@ -11,13 +11,15 @@ $!MEMBERS
|
| // Override default options, since IE returns SelectElement itself and it
|
| // does not operate as a List.
|
| List<OptionElement> get options {
|
| - return this.children.where((e) => e is OptionElement).toList();
|
| + var options = this.children.where((e) => e is OptionElement).toList();
|
| + return new ListView<OptionElement>(options, 0, options.length);
|
| }
|
|
|
| List<OptionElement> get selectedOptions {
|
| // IE does not change the selected flag for single-selection items.
|
| if (this.multiple) {
|
| - return this.options.where((o) => o.selected).toList();
|
| + var options = this.options.where((o) => o.selected).toList();
|
| + return new ListView<OptionElement>(options, 0, options.length);
|
| } else {
|
| return [this.options[this.selectedIndex]];
|
| }
|
|
|