LibWeb: Do not allow focusing "Actually Disabled" elements

This commit is contained in:
Simek
2024-11-02 19:17:20 +01:00
committed by Andreas Kling
parent 21b705ee32
commit 09420406b8
8 changed files with 34 additions and 4 deletions

View File

@@ -107,4 +107,9 @@ void HTMLButtonElement::activation_behavior(DOM::Event const& event)
// 4. FIXME: Run the popover target attribute activation behavior given element.
}
bool HTMLButtonElement::is_focusable() const
{
return enabled();
}
}