Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

Issue 51043006: Specify default values for data (text) and value in OptionElement. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index 7d5d233479d2842d0b99f5a4f6a3d0fb36d87fab..ab09f09d433e7ac4c0445865bd611e5f939b860a 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -19543,8 +19543,8 @@ class OptGroupElement extends HtmlElement {
@DomName('HTMLOptionElement')
class OptionElement extends HtmlElement {
- factory OptionElement({String data, String value, bool selected: false}) {
- return new OptionElement._(data, value, false, selected);
+ factory OptionElement({String data: '', String value : '', bool selected: false}) {
+ return new OptionElement._(data, value, null, selected);
}
@DomName('HTMLOptionElement.HTMLOptionElement')
@@ -34378,6 +34378,13 @@ final _pureIsolatePrintClosure = (s) {
final _forwardingPrintClosure = _Utils.forwardingPrint;
+final _uriBaseClosure = () => Uri.parse(window.location.href);
+
+final _pureIsolateUriBaseClosure = () {
+ throw new UnimplementedError("Uri.base on a background isolate "
+ "is not supported in the browser");
+};
+
class _Timer implements Timer {
var _canceler;
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tools/dom/templates/html/impl/impl_HTMLOptionElement.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698