mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-06 17:11:51 +00:00
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:
parent
609d568776
commit
343df5d00f
Notes:
github-actions[bot]
2025-04-18 09:08:26 +00:00
Author: https://github.com/AtkinsSJ
Commit: 343df5d00f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4324
5 changed files with 22 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue