<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>258301</bug_id>
          
          <creation_ts>2023-06-20 09:06:32 -0700</creation_ts>
          <short_desc>Support title attribute for pattern validation errors</short_desc>
          <delta_ts>2023-07-26 01:16:46 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Forms</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anne van Kesteren">annevk</reporter>
          <assigned_to name="Anne van Kesteren">annevk</assigned_to>
          <cc>akeerthi</cc>
    
    <cc>cdumez</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1962553</commentid>
    <comment_count>0</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2023-06-20 09:06:32 -0700</bug_when>
    <thetext>Other browsers do this and it can result in more useful UI:

&gt; 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:

&gt; probably want to update the logic in InputType::validationMessage around if (patternMismatch(value))</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1963831</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-06-27 09:07:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/111394402&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1968015</commentid>
    <comment_count>2</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2023-07-25 06:31:07 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/16064</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1968202</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-07-26 01:16:42 -0700</bug_when>
    <thetext>Committed 266311@main (2d36f436ba4e): &lt;https://commits.webkit.org/266311@main&gt;

Reviewed commits have been landed. Closing PR #16064 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>