LibWeb: Update focus-related spec text

Corresponds to 03ab71775b

I've also split the `Document::has_focus()` method for clarity. Actually
implementing the "has focus steps" turns out to be quite involved so
I've left it for now.
This commit is contained in:
Sam Atkins 2025-04-11 16:29:06 +01:00 committed by Andreas Kling
parent 609d568776
commit 343df5d00f
Notes: github-actions[bot] 2025-04-18 09:08:26 +00:00
5 changed files with 22 additions and 18 deletions

View file

@ -900,7 +900,7 @@ void Window::stop()
// https://html.spec.whatwg.org/multipage/interaction.html#dom-window-focus
void Window::focus()
{
// 1. Let current be this Window object's navigable.
// 1. Let current be this's navigable.
auto current = navigable();
// 2. If current is null, then return.
@ -923,7 +923,7 @@ void Window::focus()
// https://html.spec.whatwg.org/multipage/interaction.html#dom-window-blur
void Window::blur()
{
// The blur() method steps are to do nothing.
// The Window blur() method steps are to do nothing.
}
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-window-locationbar