mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +00:00
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:
committed by
Andreas Kling
parent
4923e4d406
commit
80506a161f
@@ -78,8 +78,11 @@ public:
|
||||
|
||||
void did_edit_text_node(Badge<BrowsingContext>);
|
||||
|
||||
virtual bool is_focusable() const override;
|
||||
// ^EventTarget
|
||||
// https://html.spec.whatwg.org/multipage/interaction.html#the-tabindex-attribute:the-input-element
|
||||
virtual bool is_focusable() const override { return m_type != TypeAttributeState::Hidden; }
|
||||
|
||||
// ^HTMLElement
|
||||
virtual void parse_attribute(FlyString const&, String const&) override;
|
||||
virtual void did_remove_attribute(FlyString const&) override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user