mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb: AnchorElement should be focusable with tabindex
This commit is contained in:
parent
3bc061d028
commit
8ca59e7c7e
Notes:
github-actions[bot]
2025-11-12 12:58:14 +00:00
Author: https://github.com/lpas
Commit: 8ca59e7c7e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6780
Reviewed-by: https://github.com/gmta ✅
2 changed files with 5 additions and 5 deletions
|
|
@ -31,7 +31,7 @@ public:
|
|||
|
||||
// ^EventTarget
|
||||
// https://html.spec.whatwg.org/multipage/interaction.html#the-tabindex-attribute:the-a-element
|
||||
virtual bool is_focusable() const override { return has_attribute(HTML::AttributeNames::href); }
|
||||
virtual bool is_focusable() const override { return Base::is_focusable() || has_attribute(HTML::AttributeNames::href); }
|
||||
|
||||
virtual bool is_html_anchor_element() const override { return true; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue