servo/components/script/dom/bindings
bors-servo 7ba88e8237
Auto merge of #24626 - glowe:issue-21810/improve-validation-methods, r=jdm
Issue 21810/improve validation methods

<!-- Please describe your changes on the following line: -->
This is a start at addressing #21810. I'm putting these changes out early to get some feedback on the following items:

1. I added unit tests for the validation methods mentioned in #21810, because I couldn't tell whether any of the existing WPT tests covered them. Are these tests worthwhile? Are any of them unnecessary?
2. I changed the implementation for `is_valid_floating_point_number_string` so that it passed the tests. The previous version of the function wasn't restrictive enough (it allowed certain whitespace characters before the number string).
3. I changed the catch-all condition in `htmlinputelement.rs` to account for the remaining input types that don't have a value sanitization algorithm. This last change seems good to me since we won't be able to add a new input type without adding it to the case and checking the spec for an algorithm.
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #21810

<!-- Either: -->
- [x] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2019-12-03 13:11:22 -05:00
..
codegen Fix iterator invalidation in our forEach implementation. 2019-11-25 19:56:14 -08:00
callback.rs Use #![register_tool] instead of #![register_attr] 2019-11-15 17:24:42 +01:00
cell.rs Make use of RefCell::try_borrow_unguarded 2019-04-12 19:02:07 +02:00
constant.rs Use safe JSContext when possible in interface.rs 2019-08-09 00:43:24 +01:00
conversions.rs Auto merge of #24694 - servo:rustup, r=jdm 2019-11-09 10:15:30 -05:00
error.rs Use safe JSContext as first argument for throw_dom_exception 2019-08-09 00:43:28 +01:00
guard.rs Use safe JSContext when possible in interface.rs 2019-08-09 00:43:24 +01:00
htmlconstructor.rs Remove usage of various unsafe keyword 2019-08-09 00:43:28 +01:00
inheritance.rs Update MPL license to https (part 3) 2018-11-19 14:47:12 +01:00
interface.rs Support [LegacyWindowAlias] 2019-10-19 12:01:00 +09:00
iterable.rs Remove some usage of unsafe code in iterator.rs 2019-08-09 00:02:09 +01:00
mod.rs begin messageport, transferable objects, impl 2019-10-19 14:12:22 +08:00
namespace.rs Use safe JSContext when possible in interface.rs 2019-08-09 00:43:24 +01:00
num.rs Update MPL license to https (part 3) 2018-11-19 14:47:12 +01:00
proxyhandler.rs Upgrade to Spidermonkey 67. 2019-06-26 18:10:46 -04:00
record.rs Support WebIDL record<> 2019-10-15 17:14:00 +09:00
refcounted.rs Use #![register_tool] instead of #![register_attr] 2019-11-15 17:24:42 +01:00
reflector.rs Use #![register_tool] instead of #![register_attr] 2019-11-15 17:24:42 +01:00
root.rs Use #![register_tool] instead of #![register_attr] 2019-11-15 17:24:42 +01:00
settings_stack.rs Update MPL license to https (part 3) 2018-11-19 14:47:12 +01:00
str.rs Add DOMString floating point string test and fix 2019-11-30 23:29:09 -05:00
structuredclone.rs continue messageport, transferable, postmessage options 2019-10-19 14:28:18 +08:00
trace.rs Auto merge of #24883 - szeged:id_management, r=jdm 2019-11-28 11:05:19 -05:00
transferable.rs continue messageport, transferable, postmessage options 2019-10-19 14:28:18 +08:00
utils.rs Handle u32 property indices 2019-11-27 15:50:04 +09:00
weakref.rs Use #![register_tool] instead of #![register_attr] 2019-11-15 17:24:42 +01:00
xmlname.rs Fix some new warnings 2019-06-22 14:59:09 +02:00