Bug 258301 - Support title attribute for pattern validation errors
Summary: Support title attribute for pattern validation errors
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Anne van Kesteren
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-06-20 09:06 PDT by Anne van Kesteren
Modified: 2023-07-26 01:16 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anne van Kesteren 2023-06-20 09:06:32 PDT
Other browsers do this and it can result in more useful UI:

> When an input element has a pattern attribute specified, authors should include a title attribute to give a description of the pattern. User agents may use the contents of this attribute, if it is present, when informing the user that the pattern is not matched, or at any other suitable time, such as in a tooltip or read out by assistive technology when the control gains focus.

From Aditya:

> probably want to update the logic in InputType::validationMessage around if (patternMismatch(value))
Comment 1 Radar WebKit Bug Importer 2023-06-27 09:07:16 PDT
<rdar://problem/111394402>
Comment 2 Anne van Kesteren 2023-07-25 06:31:07 PDT
Pull request: https://github.com/WebKit/WebKit/pull/16064
Comment 3 EWS 2023-07-26 01:16:42 PDT
Committed 266311@main (2d36f436ba4e): <https://commits.webkit.org/266311@main>

Reviewed commits have been landed. Closing PR #16064 and removing active labels.