servo/components
Jon Leighton 71a013dd50 Handle cases where selection API doesn't apply
The selection API only applies to certain <input> types:

https://html.spec.whatwg.org/multipage/#do-not-apply

This commit ensures that we handle that correctly.

Some notes:

1. TextControl::set_dom_selection_direction now calls
   set_selection_range(), which means that setting selectionDirection will
   now fire a selection event, as it should per the spec.

2. There is a test for the firing of the select event in
   tests/wpt/web-platform-tests/html/semantics/forms/textfieldselection/select-event.html,
   however the test did not run due to this syntax error:

   (pid:26017) "ERROR:script::dom::bindings::error: Error at http://web-platform.test:8000/html/semantics/forms/textfieldselection/select-event.html:50:11 missing = in const declaration"

   This happens due to the us of the "for (const foo of ...)" construct.
   Per https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of
   this should actually work, so it's somewhat unsatisfying to have to
   change the test.

4. If an <input>'s type is unset, it defaults to a text, and the
   selection API applies. Also, if an <input>'s type is set to an
   invalid value, it defaults to a text too. I've expanded the tests
   to account for this second case.
2017-12-08 21:07:05 +01:00
..
allocator FreeType: don’t use usable_size() as deallocation size 2017-10-30 18:22:30 +01:00
atoms Expand InputType to cover all possible types 2017-12-06 21:11:39 +01:00
bluetooth Bump bitflags to 1.0 in every servo crate 2017-10-30 23:36:06 +01:00
bluetooth_traits
canvas style: Update cssparser to 0.23. 2017-12-05 10:01:37 +01:00
canvas_traits Auto merge of #19487 - Eijebong:bump, r=jdm 2017-12-05 10:31:16 -06:00
compositing WR update to 4595561c49939cb21be9554c1b85c244508bde73 2017-11-23 14:51:11 -05:00
config Update lazy_static to 1.0 2017-12-04 22:51:13 +01:00
constellation Use FetchCanceller for document loads 2017-11-22 14:06:27 -08:00
debugger
deny_public_fields
devtools Update cookie to 0.10 2017-11-24 10:49:14 +01:00
devtools_traits Update cookie to 0.10 2017-11-24 10:49:14 +01:00
dom_struct Replace all uses of the heapsize crate with malloc_size_of. 2017-10-18 22:20:37 +11:00
domobject_derive
fallible Update smallvec to 0.6 2017-12-05 12:03:20 +01:00
geometry Replace all uses of the heapsize crate with malloc_size_of. 2017-10-18 22:20:37 +11:00
gfx style: Make all keywords CamelCase for consistency. 2017-12-06 02:35:10 +01:00
gfx_traits Auto merge of #18921 - mrobinson:incremental-stacking-context-ids, r=emilio 2017-10-18 21:34:23 -05:00
hashglobe hashglobe: Dump more information if out of memory while allocating a table. 2017-12-06 16:37:14 +08:00
jstraceable_derive
layout Update WR (AA improvements, many optimizations) 2017-12-07 15:08:31 +10:00
layout_thread Update lazy_static to 1.0 2017-12-04 22:51:13 +01:00
layout_traits
malloc_size_of Update smallvec to 0.6 2017-12-05 12:03:20 +01:00
malloc_size_of_derive
metrics added navigation start for interactive metrics 2017-11-14 15:21:35 +00:00
msg Bump bitflags to 1.0 in every servo crate 2017-10-30 23:36:06 +01:00
net Auto merge of #19487 - Eijebong:bump, r=jdm 2017-12-05 10:31:16 -06:00
net_traits Update lazy_static to 1.0 2017-12-04 22:51:13 +01:00
nonzero
profile added time to interactive metrics, refactored metrics to use traits 2017-10-24 21:02:56 +01:00
profile_traits added time to interactive metrics, refactored metrics to use traits 2017-10-24 21:02:56 +01:00
rand Update lazy_static to 1.0 2017-12-04 22:51:13 +01:00
range Replace all uses of the heapsize crate with malloc_size_of. 2017-10-18 22:20:37 +11:00
remutex Update lazy_static to 1.0 2017-12-04 22:51:13 +01:00
script Handle cases where selection API doesn't apply 2017-12-08 21:07:05 +01:00
script_layout_interface style: Make all keywords CamelCase for consistency. 2017-12-06 02:35:10 +01:00
script_plugins Make the unrooted_must_root conditional on a default Cargo feature. 2017-11-02 15:08:04 +01:00
script_traits Update cookie to 0.10 2017-11-24 10:49:14 +01:00
selectors Update smallvec to 0.6 2017-12-05 12:03:20 +01:00
servo WR update to 4595561c49939cb21be9554c1b85c244508bde73 2017-11-23 14:51:11 -05:00
servo_arc servo_arc: Add some #[inline] and repr(C) annotations. 2017-12-01 14:34:38 +01:00
size_of_test
style style: Make all keywords CamelCase for consistency. 2017-12-06 02:35:10 +01:00
style_derive style: Remove mozmm CSS unit. 2017-11-14 14:25:40 +01:00
style_traits style: Update cssparser to 0.23. 2017-12-05 10:01:37 +01:00
url Replace all uses of the heapsize crate with malloc_size_of. 2017-10-18 22:20:37 +11:00
webdriver_server Update cookie to 0.10 2017-11-24 10:49:14 +01:00
webvr
webvr_traits