diff --git a/Libraries/LibWeb/HTML/HTMLElement.cpp b/Libraries/LibWeb/HTML/HTMLElement.cpp index 476d0b16137..ea8ab713ff3 100644 --- a/Libraries/LibWeb/HTML/HTMLElement.cpp +++ b/Libraries/LibWeb/HTML/HTMLElement.cpp @@ -92,7 +92,7 @@ void HTMLElement::set_dir(String const& dir) bool HTMLElement::is_focusable() const { - return is_editing_host(); + return is_editing_host() || get_attribute(HTML::AttributeNames::tabindex).has_value(); } // https://html.spec.whatwg.org/multipage/interaction.html#dom-iscontenteditable