Bug 1897194 - Form-associated custom elements shouldn't have special handling for :read-write, r=edgar

Differential Revision: https://phabricator.services.mozilla.com/D210868
This commit is contained in:
Olli Pettay
2024-05-21 12:53:14 +00:00
parent 4c00792f5c
commit c5e80af013
6 changed files with 33 additions and 13 deletions

View File

@@ -6553,7 +6553,7 @@ HTMLInputElement::ValueModeType HTMLInputElement::GetValueMode() const {
bool HTMLInputElement::IsMutable() const {
return !IsDisabled() &&
!(DoesReadOnlyApply() && State().HasState(ElementState::READONLY));
!(DoesReadWriteApply() && State().HasState(ElementState::READONLY));
}
bool HTMLInputElement::DoesRequiredApply() const {