Files
moli/moli-wpt-compat
ldm0 5542e11da6 fix(focus): revalidate DOM focus during rendering updates
Coalesce native focus checks with the owning Document's animation-frame wake
and revalidate focusability after callbacks. Remove the fieldset-only
synchronous blur and the dependency on author-modifiable setTimeout.

Keep pending checks bound to their exact Document across document.open and
Window retirement. Bound change/blur handlers and their cleanup microtasks
with the execution watchdog.

Cover focusability changes, restored focus, native scheduling, shadow and
child documents, replacement, retirement, reentrancy, and timeout recovery.
Adapt the vendored nested-fieldset test to HTML's asynchronous focus-fixup
requirement and document its difference from the original upstream test.
2026-11-02 06:02:26 +08:00
..