[Webkit-unassigned] [Bug 59975] ValidityState::valid causes value sanitization 7 times
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jun 7 01:57:11 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=59975
Ahmad Saleem <ahmad.saleem792 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ahmad.saleem792 at gmail.com,
| |akeerthi at apple.com,
| |ashvayka at apple.com,
| |rniwa at webkit.org
--- Comment #1 from Ahmad Saleem <ahmad.saleem792 at gmail.com> ---
We still have similar function but different name:
https://searchfox.org/wubkat/source/Source/WebCore/html/FormListedElement.cpp#244
bool FormListedElement::computeValidity() const
{
bool someError = typeMismatch() || stepMismatch() || rangeUnderflow() || rangeOverflow()
|| tooShort() || tooLong() || patternMismatch() || valueMissing() || hasBadInput() || customError();
return !someError;
}
https://searchfox.org/wubkat/source/Source/WebCore/html/HTMLInputElement.cpp#344
bool HTMLInputElement::computeValidity() const
{
String value = this->value();
bool someError = m_inputType->isInvalid(value) || tooShort(value, CheckDirtyFlag) || tooLong(value, CheckDirtyFlag) || customError();
return !someError;
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230607/88ff8803/attachment.htm>
More information about the webkit-unassigned
mailing list