LibWeb: AnchorElement should be focusable with tabindex

This commit is contained in:
Lorenz A 2025-11-11 14:06:47 +01:00 committed by Jelle Raaijmakers
parent 3bc061d028
commit 8ca59e7c7e
Notes: github-actions[bot] 2025-11-12 12:58:14 +00:00
2 changed files with 5 additions and 5 deletions

View file

@ -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; }