WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
240343
readonly attribute should only apply on certain input types
https://bugs.webkit.org/show_bug.cgi?id=240343
Summary
readonly attribute should only apply on certain input types
Tim Nguyen (:ntim)
Reported
2022-05-12 06:54:01 PDT
See the readonly row on:
https://html.spec.whatwg.org/multipage/input.html#do-not-apply
Only applies to text only input types + <textarea> Text, Search URL, Telephone Email Password Date, Month, Week, Time Local Date and Time Number
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-05-12 07:45:42 PDT
<
rdar://problem/93173726
>
Tim Nguyen (:ntim)
Comment 2
2022-05-12 08:13:57 PDT
Comment hidden (obsolete)
I'll take this. There's quite a bit that could be improved here.
Tim Nguyen (:ntim)
Comment 3
2022-05-13 10:26:15 PDT
Comment hidden (obsolete)
I won'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't be too hard, just a bit tedious.
Tim Nguyen (:ntim)
Comment 4
2022-08-08 14:37:35 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/3115
EWS
Comment 5
2022-08-10 22:34:06 PDT
Committed
253321@main
(af43ca312063): <
https://commits.webkit.org/253321@main
> Reviewed commits have been landed. Closing PR #3115 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug