Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplements basic form resetting #4133
Conversation
hoppipolla-critic-bot
commented
Nov 28, 2014
|
Critic review: https://critic.hoppipolla.co.uk/r/3309 This is an external review system which you may optionally use for the code review of your pull request. In order to help critic track your changes, please do not make in-place history rewrites (e.g. via |
|
This looks good from my phone, I'll review this in detail soon. |
|
Also implemented the :indeterminate pseudo-class while I was in there, which fixes #4079. I may have broken critic, though.. |
6379b8f
to
a425a39
What can this do? Reset `<input type=text>` fields back to their default value through a call to a form's reset method. That's all for now! Fixes compile error after rebase
Also modified tests/html/textarea.html to allow for the testing of the textarea's dirty value flag.
And modifies test-inputs.html to test. Fixes wpt breaking mistake
Addresses reviews
|
Rebased and squashed! |
This comment has been minimized.
This comment has been minimized.
Manishearth
commented on 504f968
Dec 16, 2014
|
r+ |
This comment has been minimized.
This comment has been minimized.
|
saw approval from Manishearth |
This comment has been minimized.
This comment has been minimized.
|
merging mttr/servo/form_resetting = 504f968 into auto |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
some tests failed: |
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`
|
|
Got it. |
This comment has been minimized.
This comment has been minimized.
jdm
commented on e496386
Dec 16, 2014
|
r+ |
This comment has been minimized.
This comment has been minimized.
|
saw approval from jdm |
This comment has been minimized.
This comment has been minimized.
|
merging mttr/servo/form_resetting = e496386 into auto |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
all tests pass: |
This comment has been minimized.
This comment has been minimized.
|
fast-forwarding master to auto = 5951056 |
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`
e496386
into
servo:master
mttr commentedNov 28, 2014
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