[Webkit-unassigned] [Bug 275612] Hidden datetime input with valid value raises: An invalid form control with name= is not focusable.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jun 19 01:41:37 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=275612
--- Comment #2 from Karl Dubost <karlcow at apple.com> ---
and called from https://searchfox.org/wubkat/rev/15ad704057e0d342d10b792f6108eaeed7accbd7/Source/WebCore/html/HTMLFormElement.cpp#211-243
bool HTMLFormElement::validateInteractively()
it checks
```
// Focus on the first focusable control and show a validation message.
bool shouldFocus = true;
for (auto& control : unhandledInvalidControls) {
if (auto validationAnchor = control->focusableValidationAnchorElement()) {
if (shouldFocus) {
shouldFocus = false;
control->focusAndShowValidationMessage(validationAnchor.releaseNonNull());
}
} else
control->reportNonFocusableControlError();
}
```
also called from https://searchfox.org/wubkat/rev/15ad704057e0d342d10b792f6108eaeed7accbd7/Source/WebCore/html/ValidatedFormListedElement.cpp#131-149
bool ValidatedFormListedElement::reportValidity()
it checks:
```
asHTMLElement().protectedDocument()->updateLayoutIgnorePendingStylesheets();
if (auto validationAnchor = focusableValidationAnchorElement())
focusAndShowValidationMessage(validationAnchor.releaseNonNull());
else
reportNonFocusableControlError();
return false;
}
```
--
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/20240619/9724af8d/attachment-0001.htm>
More information about the webkit-unassigned
mailing list