mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-30 16:28:48 +00:00
LibWeb: Do not allow focusing "Actually Disabled" elements
This commit is contained in:
parent
21b705ee32
commit
09420406b8
Notes:
github-actions[bot]
2024-11-05 09:40:25 +00:00
Author: https://github.com/Simek
Commit: 09420406b8
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2128
8 changed files with 34 additions and 4 deletions
|
@ -2590,4 +2590,9 @@ HTMLInputElement::ValueAttributeMode HTMLInputElement::value_attribute_mode() co
|
|||
return value_attribute_mode_for_type_state(type_state());
|
||||
}
|
||||
|
||||
bool HTMLInputElement::is_focusable() const
|
||||
{
|
||||
return m_type != TypeAttributeState::Hidden && enabled();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue