GNU bug report logs -
#16194
24.3.50; [PATCH] eww: Support text form with disabled and readonly attributes.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16194 in the body.
You can then email your comments to 16194 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16194
; Package
emacs
.
(Fri, 20 Dec 2013 00:33:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Kenjiro NAKAYAMA <nakayamakenjiro <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 20 Dec 2013 00:33:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
The "disabled" and "readonly" attibutes of text form should be readonly.
example.1
<input type="text" name="example" value="test" disabled>
example.2
<input type="text" name="example" value="test" readonly>
Signed-off-by: Kenjiro NAKAYAMA <nakayamakenjiro <at> gmail.com>
* net/eww.el (eww-form-text): Support text form with disabled
and readonly attributes.
---
lisp/net/eww.el | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index a4cec26..8fb6d2d 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -679,13 +679,17 @@ appears in a <link> or <a> tag."
(value (or (cdr (assq :value cont)) ""))
(width (string-to-number
(or (cdr (assq :size cont))
- "40"))))
+ "40")))
+ (readonly (or (cdr (assq :disabled cont))
+ (cdr (assq :readonly cont)))))
(insert value)
(when (< (length value) width)
(insert (make-string (- width (length value)) ? )))
(put-text-property start (point) 'face 'eww-form-text)
(put-text-property start (point) 'local-map eww-text-map)
- (put-text-property start (point) 'inhibit-read-only t)
+ (if readonly
+ (put-text-property start (point) 'read-only t)
+ (put-text-property start (point) 'inhibit-read-only t))
(put-text-property start (point) 'eww-form
(list :eww-form eww-form
:value value
--
1.8.3.1
Reply sent
to
Ted Zlatanov <tzz <at> lifelogs.com>
:
You have taken responsibility.
(Sat, 21 Dec 2013 20:42:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Kenjiro NAKAYAMA <nakayamakenjiro <at> gmail.com>
:
bug acknowledged by developer.
(Sat, 21 Dec 2013 20:42:03 GMT)
Full text and
rfc822 format available.
Message #10 received at 16194-done <at> debbugs.gnu.org (full text, mbox):
On Fri, 20 Dec 2013 09:31:27 +0900 Kenjiro NAKAYAMA <nakayamakenjiro <at> gmail.com> wrote:
KN> The "disabled" and "readonly" attibutes of text form should be readonly.
KN> example.1
KN> <input type="text" name="example" value="test" disabled>
KN> example.2
KN> <input type="text" name="example" value="test" readonly>
Applied, thank you.
Ted
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 19 Jan 2014 12:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 153 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.