mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
Bug 1272297 - Do not check pattern validity while parser is creating this input element. r=smaug
This commit is contained in:
parent
4b42312a6f
commit
6107aa70d5
@ -1468,7 +1468,7 @@ HTMLInputElement::AfterSetAttr(int32_t aNameSpaceID, nsIAtom* aName,
|
||||
}
|
||||
} else if (MaxLengthApplies() && aName == nsGkAtoms::maxlength) {
|
||||
UpdateTooLongValidityState();
|
||||
} else if (aName == nsGkAtoms::pattern) {
|
||||
} else if (aName == nsGkAtoms::pattern && !mParserCreating) {
|
||||
UpdatePatternMismatchValidityState();
|
||||
} else if (aName == nsGkAtoms::multiple) {
|
||||
UpdateTypeMismatchValidityState();
|
||||
|
Loading…
Reference in New Issue
Block a user