Timothy Flynn
fd289deb44
LibWeb: Update the document cursor position when the selection changes
...
Otherwise, it looks a bit awkward where the cursor position does not
update while the selection is elsewhere.
Note that this requires passing along the raw selection positions from
`set the selection range` to the elements. Otherwise, consider what will
happen if we set the selection start and end to the same value. By going
through the API accessor, we hit the case where the start and end are
the same value, and return the document cursor position. This would mean
the cursor position would not be updated.
The test changes here more closely match what Firefox produces now. It
is not a 100% match; the `select event fired` test case isn't right. The
problem is the event fires for the input element, but we most recently
focused the textarea element. Thus, when we retrieve the selection from
the input element, we return the document's cursor position, which is
actually in the textarea element. The fix will ultimately be to fully
implement the following:
https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#concept-textarea/input-cursor
That is, each input / textarea element should separately track its own
text cursor position.
2024-08-31 15:51:08 +02:00
..
2024-08-20 09:30:05 +02:00
2024-08-20 09:36:11 +02:00
2024-07-06 14:51:43 -06:00
2024-08-19 18:57:20 +02:00
2024-08-29 06:31:25 +02:00
2024-08-16 11:22:09 -04:00
2024-05-30 09:29:20 -06:00
2024-08-05 09:12:07 +02:00
2024-08-19 09:03:22 +02:00
2024-03-30 19:28:20 +01:00
2024-08-19 18:57:20 +02:00
2024-07-18 09:43:38 +01:00
2024-04-26 12:21:57 -04:00
2024-04-26 12:21:57 -04:00
2024-07-13 19:53:02 +02:00
2024-07-13 19:53:02 +02:00
2024-07-13 19:53:02 +02:00
2024-08-20 09:36:11 +02:00
2024-08-20 09:36:11 +02:00
2024-04-16 07:40:01 +02:00
2024-04-27 18:29:35 -04:00
2024-04-27 18:29:35 -04:00
2024-05-21 19:29:04 +02:00
2024-08-20 09:30:05 +02:00
2024-08-20 09:30:05 +02:00
2024-08-19 09:04:50 +02:00
2024-04-27 18:29:35 -04:00
2024-06-22 17:39:53 +02:00
2024-06-23 14:30:13 +02:00
2024-06-22 17:39:53 +02:00
2024-06-22 17:39:53 +02:00
2024-06-22 17:39:53 +02:00
2024-03-22 11:29:57 +01:00
2024-08-22 14:21:13 +02:00
2024-08-22 14:21:13 +02:00
2024-08-22 14:21:13 +02:00
2024-08-24 14:53:11 +02:00
2024-08-24 14:53:11 +02:00
2024-08-24 14:53:11 +02:00
2024-08-22 14:21:13 +02:00
2024-08-22 14:21:13 +02:00
2024-08-22 14:21:13 +02:00
2024-08-20 23:30:35 +01:00
2024-04-09 09:13:06 +02:00
2024-07-10 07:04:53 +02:00
2024-07-10 07:04:53 +02:00
2024-07-10 07:04:53 +02:00
2024-04-16 07:40:01 +02:00
2024-04-13 09:19:00 -07:00
2024-06-26 06:13:29 +02:00
2024-07-29 11:17:05 +01:00
2024-07-29 11:17:05 +01:00
2024-07-29 11:19:00 +02:00
2024-07-26 14:26:16 +02:00
2024-07-26 14:26:16 +02:00
2024-08-22 14:21:13 +02:00
2024-08-22 14:21:13 +02:00
2024-07-25 18:35:57 -06:00
2024-07-25 18:35:57 -06:00
2024-07-09 11:28:32 +01:00
2024-06-26 06:30:40 +02:00
2024-06-26 06:30:40 +02:00
2024-06-26 06:30:40 +02:00
2024-07-10 07:03:37 +02:00
2024-07-10 07:03:37 +02:00
2024-04-27 18:29:35 -04:00
2024-06-22 14:57:47 +02:00
2024-08-17 12:54:28 -04:00
2024-07-18 09:43:38 +01:00
2024-05-26 18:29:24 +02:00
2024-03-16 08:42:33 +01:00
2024-03-16 08:42:33 +01:00
2024-08-14 20:53:33 +01:00
2024-08-31 15:51:08 +02:00
2024-08-31 15:51:08 +02:00
2024-07-26 10:21:32 +02:00
2024-03-16 16:35:54 +01:00
2024-03-11 18:29:10 +01:00
2024-03-11 18:29:10 +01:00
2024-04-15 01:02:51 -07:00
2024-04-15 01:02:51 -07:00
2024-04-15 01:02:51 -07:00
2024-08-20 20:31:39 +02:00
2024-04-11 21:25:06 +02:00
2024-07-21 10:50:05 +02:00
2024-03-28 15:34:52 +01:00
2024-07-26 14:26:16 +02:00
2024-07-26 14:26:16 +02:00
2024-04-01 14:41:00 +02:00
2024-08-02 08:07:00 +02:00
2024-07-10 07:04:08 +02:00
2024-08-17 07:45:00 +02:00
2024-07-10 07:04:08 +02:00
2024-07-10 07:04:08 +02:00
2024-06-07 09:54:19 +02:00
2024-04-27 18:29:35 -04:00
2024-07-10 07:04:08 +02:00
2024-07-10 07:04:08 +02:00
2024-08-21 10:51:48 +01:00
2024-07-10 07:04:08 +02:00
2024-04-27 18:29:35 -04:00
2024-04-27 18:29:35 -04:00
2024-08-26 14:08:59 -04:00
2024-05-19 16:24:11 +02:00
2024-08-15 13:58:38 +01:00
2024-04-27 18:29:35 -04:00
2024-04-27 18:29:35 -04:00
2024-04-24 15:23:45 +02:00
2024-04-24 15:23:45 +02:00
2024-07-19 09:04:30 +01:00
2024-07-10 07:04:08 +02:00
2024-06-23 14:30:13 +02:00
2024-07-08 11:34:06 +02:00
2024-04-27 18:29:35 -04:00
2024-08-15 13:58:38 +01:00
2024-04-27 18:29:35 -04:00
2024-04-27 18:29:35 -04:00
2024-03-18 14:06:28 -04:00
2024-08-02 18:40:39 +02:00
2024-08-26 14:08:59 -04:00
2024-07-05 07:14:50 +02:00
2024-04-27 18:29:35 -04:00
2024-08-17 07:45:00 +02:00
2024-04-27 18:29:35 -04:00
2024-05-19 16:24:11 +02:00
2024-08-21 10:51:48 +01:00
2024-08-22 14:21:13 +02:00
2024-07-26 14:26:16 +02:00
2024-08-31 07:47:54 +02:00
2024-04-27 18:29:35 -04:00
2024-08-17 07:45:00 +02:00
2024-07-10 07:04:08 +02:00
2024-07-10 07:04:08 +02:00
2024-04-27 18:29:35 -04:00
2024-08-15 13:58:38 +01:00
2024-04-27 18:29:35 -04:00
2024-04-27 18:29:35 -04:00
2024-08-13 14:14:34 +02:00
2024-06-07 09:54:19 +02:00
2024-08-18 11:15:08 +02:00
2024-07-10 07:04:08 +02:00
2024-08-17 07:45:00 +02:00
2024-08-18 11:15:08 +02:00
2024-06-06 08:20:02 +02:00
2024-08-17 17:31:14 +01:00
2024-08-31 15:51:08 +02:00
2024-08-31 15:51:08 +02:00
2024-08-31 07:47:54 +02:00
2024-05-18 11:04:04 +02:00
2024-05-18 11:04:04 +02:00
2024-05-18 11:04:04 +02:00
2024-04-27 18:29:35 -04:00
2024-04-27 18:29:35 -04:00
2024-08-22 09:34:54 +02:00
2024-07-10 07:04:08 +02:00
2024-08-17 07:45:00 +02:00
2024-04-27 18:29:35 -04:00
2024-04-24 15:23:45 +02:00
2024-04-24 15:23:45 +02:00
2024-08-21 10:51:48 +01:00
2024-07-13 19:57:51 +02:00
2024-07-13 19:57:51 +02:00
2024-07-26 09:30:19 +02:00
2024-07-26 09:30:19 +02:00
2024-08-17 07:45:00 +02:00
2024-04-27 18:29:35 -04:00
2024-08-21 10:51:48 +01:00
2024-07-07 08:07:19 +02:00
2024-05-18 18:09:18 +02:00
2024-04-27 18:29:35 -04:00
2024-08-15 09:44:35 +02:00
2024-08-05 11:26:41 +02:00
2024-08-17 07:45:00 +02:00
2024-04-27 18:29:35 -04:00
2024-04-27 18:29:35 -04:00
2024-07-26 09:15:39 +01:00
2024-07-26 09:15:39 +01:00
2024-05-16 08:03:13 +02:00
2024-07-27 20:23:14 +01:00
2024-07-16 10:59:59 +01:00
2024-04-09 09:23:57 +02:00
2024-05-18 11:23:20 +02:00
2024-05-18 11:23:20 +02:00
2024-05-19 16:24:11 +02:00
2024-08-15 13:58:38 +01:00
2024-04-27 18:29:35 -04:00
2024-04-27 18:29:35 -04:00
2024-08-15 13:58:38 +01:00
2024-05-21 19:28:43 +02:00
2024-05-21 19:28:43 +02:00
2024-08-19 09:02:21 +02:00
2024-07-15 15:51:50 +01:00
2024-05-18 18:09:18 +02:00
2024-04-27 18:29:35 -04:00
2024-08-14 21:06:25 +01:00
2024-08-04 19:25:29 +01:00
2024-08-17 07:45:00 +02:00
2024-07-26 09:15:39 +01:00
2024-07-26 09:15:39 +01:00
2024-08-13 22:53:55 +01:00
2024-05-07 16:45:28 -06:00
2024-05-07 16:45:28 -06:00
2024-04-27 18:29:35 -04:00
2024-08-17 07:45:00 +02:00
2024-04-27 18:29:35 -04:00
2024-07-23 11:12:18 +02:00
2024-06-22 14:57:47 +02:00
2024-06-22 14:57:47 +02:00
2024-08-15 13:58:38 +01:00
2024-08-21 10:51:48 +01:00
2024-08-07 00:53:38 +01:00
2024-08-07 00:53:38 +01:00
2024-04-27 18:29:35 -04:00
2024-08-21 10:51:48 +01:00
2024-07-10 07:04:08 +02:00
2024-08-21 10:51:48 +01:00
2024-04-27 18:29:35 -04:00
2024-02-26 19:26:13 +00:00
2024-06-25 19:22:35 +02:00
2024-06-25 19:22:35 +02:00
2024-06-25 19:22:35 +02:00
2024-08-31 15:51:08 +02:00
2024-08-31 15:51:08 +02:00
2024-08-31 07:47:54 +02:00
2024-04-27 18:29:35 -04:00
2024-04-27 18:29:35 -04:00
2024-08-06 07:57:33 +01:00
2024-08-06 07:57:33 +01:00
2024-08-17 07:45:00 +02:00
2024-04-27 18:29:35 -04:00
2024-04-27 18:29:35 -04:00
2024-07-18 09:43:38 +01:00
2024-07-10 07:04:08 +02:00
2024-05-21 19:28:43 +02:00
2024-04-27 18:29:35 -04:00
2024-04-08 14:25:36 +02:00
2024-04-08 14:25:36 +02:00
2024-08-20 20:39:09 +02:00
2024-03-30 19:29:14 +01:00
2024-05-19 16:24:11 +02:00
2024-08-05 11:26:41 +02:00
2024-08-05 11:26:41 +02:00
2024-03-18 14:06:28 -04:00
2024-05-30 09:29:20 -06:00
2024-08-21 10:52:19 +01:00
2024-05-30 09:29:20 -06:00
2024-05-19 16:24:11 +02:00
2024-03-16 16:35:54 +01:00
2024-04-27 18:29:35 -04:00
2024-07-10 10:28:43 +02:00
2024-07-10 10:28:43 +02:00
2024-07-10 10:28:43 +02:00
2024-08-01 11:39:43 +02:00
2024-04-19 16:38:55 -04:00
2024-04-27 18:29:35 -04:00
2024-07-26 14:26:16 +02:00
2024-07-26 14:26:16 +02:00
2024-08-22 14:21:13 +02:00
2024-08-19 18:57:20 +02:00
2024-08-18 11:15:08 +02:00
2024-08-18 11:15:08 +02:00
2024-04-16 07:40:01 +02:00
2024-08-18 11:15:08 +02:00
2024-05-29 21:30:15 +02:00
2024-03-16 16:35:54 +01:00
2024-03-16 16:35:54 +01:00
2024-03-18 14:06:28 -04:00
2024-03-27 18:07:07 +01:00
2024-04-24 17:04:43 +02:00
2024-04-22 17:10:11 +02:00
2024-03-16 16:35:54 +01:00
2024-08-25 09:48:30 +02:00
2024-08-25 09:48:30 +02:00
2024-08-25 09:48:30 +02:00
2024-08-11 20:07:10 +01:00
2024-08-19 12:56:55 +02:00
2024-04-06 07:20:22 +02:00
2024-07-05 07:14:03 +02:00
2024-07-05 07:14:03 +02:00
2024-07-25 11:38:59 +01:00
2024-08-28 07:49:17 -04:00
2024-08-28 07:49:17 -04:00
2024-03-06 07:19:10 +01:00
2024-03-18 14:06:28 -04:00
2024-04-27 18:29:35 -04:00
2024-04-27 18:29:35 -04:00
2024-08-20 09:30:05 +02:00
2024-07-26 14:26:16 +02:00
2024-07-26 14:26:16 +02:00
2024-07-26 14:26:16 +02:00
2024-07-26 14:26:16 +02:00
2024-03-06 07:19:10 +01:00
2024-07-10 07:03:37 +02:00
2024-04-11 21:25:06 +02:00
2024-04-11 21:25:06 +02:00
2024-05-19 16:24:11 +02:00
2024-08-22 14:21:13 +02:00
2024-03-18 14:06:28 -04:00
2024-03-18 14:06:28 -04:00
2024-04-27 18:29:35 -04:00
2024-05-07 17:21:52 -06:00
2024-04-19 06:34:07 -04:00
2024-02-26 14:18:49 +01:00
2024-04-08 17:24:48 -04:00
2024-04-08 17:24:48 -04:00
2024-08-28 18:36:28 +01:00
2024-08-28 18:36:28 +01:00
2024-08-28 18:36:28 +01:00
2024-08-25 09:48:30 +02:00
2024-08-25 09:48:30 +02:00
2024-08-25 09:48:30 +02:00
2024-04-13 09:19:00 -07:00
2024-04-13 09:19:00 -07:00
2024-08-18 11:15:08 +02:00
2024-08-18 11:15:08 +02:00
2024-08-05 11:26:41 +02:00
2024-08-05 11:26:41 +02:00
2024-08-08 12:20:04 +02:00
2024-03-18 14:06:28 -04:00
2024-07-26 14:26:16 +02:00
2024-07-26 14:26:16 +02:00
2024-03-30 21:26:37 +01:00
2024-03-20 09:16:01 +01:00
2024-04-27 18:29:35 -04:00
2024-04-27 18:29:35 -04:00
2024-08-24 11:25:19 +01:00
2024-07-26 09:30:19 +02:00
2024-07-26 09:30:19 +02:00
2024-07-26 09:30:19 +02:00
2024-07-06 11:41:13 +02:00
2024-07-06 11:41:13 +02:00
2024-07-06 11:41:13 +02:00
2024-04-17 07:16:52 +02:00
2024-03-16 16:35:54 +01:00
2024-03-16 16:35:54 +01:00
2024-08-05 09:12:07 +02:00
2024-05-30 16:16:33 -04:00
2024-05-30 16:16:33 -04:00
2024-07-06 11:41:13 +02:00
2024-07-06 11:41:13 +02:00
2024-07-06 11:41:13 +02:00
2024-08-19 18:57:20 +02:00
2024-08-18 11:15:08 +02:00
2024-05-29 09:32:59 -06:00
2024-05-29 09:32:59 -06:00
2024-05-29 09:32:59 -06:00
2024-06-16 15:30:28 -04:00
2024-06-16 15:30:28 -04:00
2024-06-09 10:13:32 +02:00
2024-07-18 09:43:38 +01:00
2024-07-18 09:43:38 +01:00
2024-04-26 12:21:57 -04:00
2024-04-26 12:21:57 -04:00
2024-05-30 16:16:33 -04:00
2024-05-30 16:16:33 -04:00
2024-08-15 13:58:38 +01:00
2024-08-05 09:12:07 +02:00
2024-06-27 10:09:39 +02:00
2024-03-11 18:29:10 +01:00
2024-03-11 18:29:10 +01:00
2024-07-26 10:21:32 +02:00
2024-07-07 13:53:01 +01:00
2024-07-07 13:53:01 +01:00
2024-05-04 21:42:59 +02:00
2024-05-04 21:42:59 +02:00
2024-04-27 18:29:35 -04:00
2024-03-18 14:06:28 -04:00
2024-08-24 11:25:19 +01:00
2024-04-19 16:38:55 -04:00
2024-05-30 09:29:20 -06:00
2024-04-21 09:12:25 +02:00
2024-05-04 21:42:59 +02:00
2024-07-10 07:04:53 +02:00
2024-07-10 07:04:53 +02:00
2024-07-10 07:04:53 +02:00
2024-08-05 09:58:13 +02:00
2024-08-05 09:58:13 +02:00
2024-04-27 18:29:35 -04:00
2024-08-16 11:22:09 -04:00
2024-08-16 11:22:09 -04:00