<?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>240343</bug_id>
          
          <creation_ts>2022-05-12 06:54:01 -0700</creation_ts>
          <short_desc>readonly attribute should only apply on certain input types</short_desc>
          <delta_ts>2022-08-10 22:34:08 -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>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=239302</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>237192</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Nguyen (:ntim)">ntim</reporter>
          <assigned_to name="Tim Nguyen (:ntim)">ntim</assigned_to>
          <cc>cdumez</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
    
    <cc>zsun</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1868388</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-05-12 06:54:01 -0700</bug_when>
    <thetext>See the readonly row on: https://html.spec.whatwg.org/multipage/input.html#do-not-apply

Only applies to text only input types + &lt;textarea&gt;

Text,
Search
URL,
Telephone
Email
Password
Date,
Month,
Week,
Time
Local Date and Time
Number</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868407</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-05-12 07:45:42 -0700</bug_when>
    <thetext>&lt;rdar://problem/93173726&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868415</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-05-12 08:13:57 -0700</bug_when>
    <thetext>I&apos;ll take this. There&apos;s quite a bit that could be improved here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1868797</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-05-13 10:26:15 -0700</bug_when>
    <thetext>I won&apos;t be able to look into this soon, feel free to take this over.

Seems like we have a supportsReadOnly() function on InputType, which should be helpful.

I would either change the m_isReadOnly bit (which needs to be updated on type change too) or the isDisabledOrReadOnly function. Shouldn&apos;t be too hard, just a bit tedious.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1889800</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-08-08 14:37:35 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/3115</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1890502</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-08-10 22:34:06 -0700</bug_when>
    <thetext>Committed 253321@main (af43ca312063): &lt;https://commits.webkit.org/253321@main&gt;

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

    </bug>

</bugzilla>