aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/HTMLInputElement.webidl
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2014-12-16 15:03:49 -0700
committerbors-servo <metajack+bors@gmail.com>2014-12-16 15:03:49 -0700
commit5951056973fc0e08e70224214740a274ca8ef20f (patch)
treea8007d81bb3377bd6803f0b589ed1c69ad3463dd /components/script/dom/webidls/HTMLInputElement.webidl
parentb6a593650bcc33e4188153d135e9a2781a488f96 (diff)
parente4963869d3820d47865cf5d67a8c13f547061f5e (diff)
downloadservo-5951056973fc0e08e70224214740a274ca8ef20f.tar.gz
servo-5951056973fc0e08e70224214740a274ca8ef20f.zip
auto merge of #4133 : mttr/servo/form_resetting, r=jdm
We can reset `<input type=text>` fields! I wish I could've done something with checkboxes, but unfortunately, that's it for now. In addition to that, this PR implements `HTMLInputAttribute.defaultValue`, updates wpt-test to expect passing tests as a result of that implementation, and fixes an index error crash with text inputs. edit: also includes an html example where one may lazily watch form resets in action: ` tests/html/form_reset_handsfree.html`
Diffstat (limited to 'components/script/dom/webidls/HTMLInputElement.webidl')
-rw-r--r--components/script/dom/webidls/HTMLInputElement.webidl4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/webidls/HTMLInputElement.webidl b/components/script/dom/webidls/HTMLInputElement.webidl
index 434da309f21..47180432736 100644
--- a/components/script/dom/webidls/HTMLInputElement.webidl
+++ b/components/script/dom/webidls/HTMLInputElement.webidl
@@ -9,7 +9,7 @@ interface HTMLInputElement : HTMLElement {
// attribute DOMString alt;
// attribute DOMString autocomplete;
// attribute boolean autofocus;
- // attribute boolean defaultChecked;
+ attribute boolean defaultChecked;
attribute boolean checked;
// attribute DOMString dirName;
attribute boolean disabled;
@@ -38,7 +38,7 @@ interface HTMLInputElement : HTMLElement {
// attribute DOMString src;
// attribute DOMString step;
attribute DOMString type;
- // attribute DOMString defaultValue;
+ attribute DOMString defaultValue;
[TreatNullAs=EmptyString] attribute DOMString value;
// attribute Date? valueAsDate;
// attribute unrestricted double valueAsNumber;