mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
4f922915fe
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` Source-Repo: https://github.com/servo/servo Source-Revision: 5951056973fc0e08e70224214740a274ca8ef20f
17 lines
395 B
HTML
17 lines
395 B
HTML
<html>
|
|
<head></head>
|
|
<body>
|
|
<form>
|
|
<input name=bar type=checkbox checked>
|
|
<input name=baz value="baz1" type=radio checked>
|
|
<input name=baz value="baz2" type=radio>
|
|
<input type=text id=hi name=bye value="hi!">
|
|
<input type=text id=aloha name=empty value="">
|
|
<input type=text id=welcome name=reallyempty>
|
|
<textarea id=textarea>Hello
|
|
TextArea!</textarea>
|
|
<input type=reset>
|
|
</form>
|
|
</body>
|
|
</html>
|