mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 19:47:17 +02:00
LibWeb: Do not allow focusing "Actually Disabled" elements
This commit is contained in:
Notes:
github-actions[bot]
2024-11-05 09:40:25 +00:00
Author: https://github.com/Simek Commit: https://github.com/LadybirdBrowser/ladybird/commit/09420406b8c Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2128
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user