diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-01-09 22:15:12 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-09 22:15:12 -0600 |
commit | afe298b53d91226d61a2ca7955b9c1d3d233a194 (patch) | |
tree | 2bdbadc08424c3089f403a126660b77c20abe834 /python/servo/util.py | |
parent | e5a0bb9b4d26156ee675c33968007c7d0d54fd3b (diff) | |
parent | 5b6e8215591c835dfb7092af25676d8ced344ebe (diff) | |
download | servo-afe298b53d91226d61a2ca7955b9c1d3d233a194.tar.gz servo-afe298b53d91226d61a2ca7955b9c1d3d233a194.zip |
Auto merge of #19730 - NLincoln:19172-number-input-type-validations, r=KiChjang
number input type validations
I used rust's builtin float parser to implement this. Rust's parser is more permissive than what browsers support (in this case), so I added some code to handle those edge cases.
This passes all the prewritten test cases locally, but I fell asleep last night before updating the manifests :sweat_smile:
---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes are part of #19172
<!-- Either: -->
- [X] There are tests for these changes
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19730)
<!-- Reviewable:end -->
Diffstat (limited to 'python/servo/util.py')
0 files changed, 0 insertions, 0 deletions