LibWeb: Make any HTMLInputElement with type != hidden focusable

From the HTML spec:

    Modulo platform conventions, it is suggested that the following
    elements should be considered as focusable areas and be sequentially
    focusable:

      ...
    - input elements whose type attribute are not in the Hidden state
      ...
This commit is contained in:
Linus Groh 2022-03-26 18:02:41 +00:00 committed by Andreas Kling
commit 80506a161f
Notes: sideshowbarker 2024-07-17 16:43:00 +09:00
2 changed files with 4 additions and 6 deletions

View file

@ -208,11 +208,6 @@ void HTMLInputElement::did_receive_focus()
browsing_context->set_cursor_position(DOM::Position { *m_text_node, 0 });
}
bool HTMLInputElement::is_focusable() const
{
return m_text_node;
}
void HTMLInputElement::parse_attribute(FlyString const& name, String const& value)
{
HTMLElement::parse_attribute(name, value);