Index: lib/html/templates/html/dart2js/impl_SelectElement.darttemplate |
diff --git a/lib/html/templates/html/dart2js/impl_CanvasElement.darttemplate b/lib/html/templates/html/dart2js/impl_SelectElement.darttemplate |
similarity index 73% |
copy from lib/html/templates/html/dart2js/impl_CanvasElement.darttemplate |
copy to lib/html/templates/html/dart2js/impl_SelectElement.darttemplate |
index 1c790c0afe67b39f424f3d8f972bc8965ef0bedd..59635205dd7ce306ca1326e5ab8fa1a0a17f014f 100644 |
--- a/lib/html/templates/html/dart2js/impl_CanvasElement.darttemplate |
+++ b/lib/html/templates/html/dart2js/impl_SelectElement.darttemplate |
@@ -5,5 +5,7 @@ |
class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
$!MEMBERS |
- _CanvasRenderingContext2DImpl get context2d => getContext('2d'); |
+ List<OptionElement> get selectedOptions() { |
+ return this.options.filter((o) => o.selected); |
+ } |
} |