Bug 1841801 - Make dirname apply to hidden, tel, url, email. r=dom-core,edgar

Differential Revision: https://phabricator.services.mozilla.com/D183114
This commit is contained in:
Vincent Hilla
2023-07-24 09:44:20 +00:00
parent 799560b147
commit aeb9253cb9
2 changed files with 6 additions and 3 deletions

View File

@@ -1584,6 +1584,10 @@ class HTMLInputElement final : public TextControlElement,
switch (mType) {
case FormControlType::InputText:
case FormControlType::InputSearch:
case FormControlType::InputEmail:
case FormControlType::InputHidden:
case FormControlType::InputTel:
case FormControlType::InputUrl:
return true;
default:
return false;