зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1801380 - Don't call RecomputeDirectionality() if the element has dir=auto. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D162462
This commit is contained in:
Родитель
4f69b540a6
Коммит
75c3be2a1e
|
@ -4485,8 +4485,8 @@ void HTMLInputElement::HandleTypeChange(FormControlType aNewType,
|
|||
// Changing type may affect directionality because of the special-case for
|
||||
// <input type=tel>, as specified in
|
||||
// https://html.spec.whatwg.org/multipage/dom.html#the-directionality
|
||||
if (oldType == FormControlType::InputTel ||
|
||||
mType == FormControlType::InputTel) {
|
||||
if (!HasDirAuto() && (oldType == FormControlType::InputTel ||
|
||||
mType == FormControlType::InputTel)) {
|
||||
RecomputeDirectionality(this, aNotify);
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
<input dir="auto" type="tel">
|
|
@ -95,3 +95,4 @@ load 1724816.html
|
|||
load 1785933.html
|
||||
load 1787671.html
|
||||
load 1789475.html
|
||||
load 1801380.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче