mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
LibWeb: Update focusing spec steps
Update a couple of focus-related spec steps and their implementations. The most relevant change is that we no longer allow focusing on elements that return false for `->is_focusable()`, which necessitates fixing a broken test that tried to `.focus()` on `<div>`s that were not focusable. That test's output now more accurately reflects the expected outcome as seen in other browsers.
This commit is contained in:
committed by
Jelle Raaijmakers
parent
cc19dd3fb0
commit
65910dc343
Notes:
github-actions[bot]
2025-08-26 08:27:05 +00:00
Author: https://github.com/gmta Commit: https://github.com/LadybirdBrowser/ladybird/commit/65910dc3435 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5952
@@ -23,6 +23,9 @@ public:
|
||||
|
||||
virtual void removed_from(Node* old_parent, Node& old_root) override;
|
||||
|
||||
// ^EventTarget
|
||||
virtual bool is_focusable() const override { return true; }
|
||||
|
||||
String return_value() const;
|
||||
void set_return_value(String);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user