mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
LibWeb: Do not allow focusing "Actually Disabled" elements
This commit is contained in:
@@ -40,7 +40,9 @@ public:
|
||||
|
||||
// ^EventTarget
|
||||
// https://html.spec.whatwg.org/multipage/interaction.html#the-tabindex-attribute:the-button-element
|
||||
virtual bool is_focusable() const override { return true; }
|
||||
// https://html.spec.whatwg.org/multipage/interaction.html#focusable-area
|
||||
// https://html.spec.whatwg.org/multipage/semantics-other.html#concept-element-disabled
|
||||
virtual bool is_focusable() const override;
|
||||
|
||||
// ^FormAssociatedElement
|
||||
// https://html.spec.whatwg.org/multipage/forms.html#category-listed
|
||||
|
||||
Reference in New Issue
Block a user