Martin Robinson
33f74feffd
script: Fully implement DocumentOrShadowRoot#activeElement ( #43861 )
...
`DocumentOrShadowRoot#activeElement` should return retargeted results.
What that means is that if the DOM anchor of the `Document`'s focused
focusable area is within a shadow root, `Document#activeElement` should
return the shadow host. This change implements that behavior, properly
returning the `activeElement` from both `Document` and `ShadowRoot`.
Testing: This causes a decent number of WPT tests and subtests to start
passing. One subtest starts to fail, because it uses the `autofocus`
attribute
which we do not yet support.
Signed-off-by: Martin Robinson <mrobinson@igalia.com >
2026-04-02 11:12:30 +00:00
..
2026-04-01 11:41:28 +00:00
2026-03-21 08:23:54 +00:00
2026-03-21 08:00:48 +00:00
2026-03-17 13:03:33 +00:00
2026-03-18 11:03:54 +00:00
2026-03-18 11:03:54 +00:00
2026-01-10 08:05:49 +00:00
2026-03-27 12:15:50 +00:00
2026-03-25 06:04:57 +00:00
2026-03-07 06:16:33 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-03-18 11:03:54 +00:00
2026-03-16 07:27:15 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-03-20 12:54:38 +00:00
2026-04-02 11:12:30 +00:00
2026-01-10 08:05:49 +00:00
2026-03-18 11:03:54 +00:00
2026-03-09 09:40:54 +00:00
2025-11-01 05:32:45 +00:00
2026-03-27 17:11:22 +00:00
2026-03-21 11:46:16 +00:00
2026-01-10 08:05:49 +00:00
2026-03-14 07:37:47 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-03-08 11:46:42 +00:00
2026-04-01 04:45:12 +00:00
2026-03-26 18:05:24 +00:00
2026-03-18 11:03:54 +00:00
2026-03-14 07:37:47 +00:00
2026-01-10 08:05:49 +00:00
2026-03-26 18:05:24 +00:00
2026-03-15 16:02:40 +00:00
2026-03-25 06:31:16 +00:00
2026-03-26 18:05:24 +00:00
2026-01-10 08:05:49 +00:00
2026-03-18 11:03:54 +00:00
2026-03-18 11:03:54 +00:00
2026-01-10 08:05:49 +00:00
2026-03-21 09:54:32 +00:00
2026-01-10 08:05:49 +00:00
2026-03-18 11:03:54 +00:00
2026-03-27 14:25:54 +00:00
2026-03-17 13:03:33 +00:00
2026-03-18 11:03:54 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-03-18 11:03:54 +00:00
2026-01-10 08:05:49 +00:00
2026-03-26 18:05:24 +00:00
2026-03-22 12:18:20 +00:00
2026-03-18 11:03:54 +00:00
2026-03-18 11:03:54 +00:00
2026-01-10 08:05:49 +00:00
2026-03-18 11:03:54 +00:00
2026-01-10 08:05:49 +00:00
2026-03-18 11:03:54 +00:00
2026-03-18 11:03:54 +00:00
2026-03-18 11:03:54 +00:00
2026-03-17 13:03:33 +00:00
2026-03-17 13:03:33 +00:00
2026-03-14 07:37:47 +00:00
2026-04-01 11:41:28 +00:00
2026-01-10 08:05:49 +00:00
2026-03-14 10:03:48 +00:00
2025-11-06 11:06:03 +00:00
2026-01-10 08:05:49 +00:00
2026-01-10 08:05:49 +00:00
2026-03-26 18:05:24 +00:00
2026-04-02 09:34:05 +00:00
2026-03-26 11:59:22 +00:00