[PATCH] Implement "readonly" attribute
Dawit A.
adawit at kde.org
Wed May 22 07:00:31 BST 2002
Hi,
This is my attempt to implement readonly attribute for the two elements
that support it: TEXTAREA's and INPUT elements of type text and password.
A patch and a small testcase are attached below.
The patch changes HTMLGenericFormElementImpl::setReadOnly to virtual. This
way it can be re-implemented as needed. The default function now simply does
nothing. Also, I hacked the RenderTextArea class to add a widget() function which
seems to be missing unlike the other RenderXXXX widgets.
I do not know if this is an acceptable implementation. It does work properly as you
can try for yourself using the included testcase, but that of course means nothing
since I am not completely familiar with khtml's code.
Regards,
Dawit A.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: html_formimpl.diff
Type: text/x-diff
Size: 3607 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20020522/5c7ce581/attachment.diff>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20020522/5c7ce581/attachment.html>
More information about the kfm-devel
mailing list