Bug 190157 - konqueror doesn't fire onfocus event on inputs
Summary: konqueror doesn't fire onfocus event on inputs
Status: RESOLVED DUPLICATE of bug 190188
Alias: None
Product: konqueror
Classification: Applications
Component: kjs (show other bugs)
Version: 4.2.2
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
Depends on:
Reported: 2009-04-20 12:12 UTC by lunter
Modified: 2009-04-20 20:50 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:

source (340 bytes, text/html)
2009-04-20 12:12 UTC, lunter
example_2 (33.95 KB, text/html)
2009-04-20 17:46 UTC, lunter
example1 (3.72 KB, text/html)
2009-04-20 17:52 UTC, lunter

Note You need to log in before you can comment on or make changes to this bug.
Description lunter 2009-04-20 12:12:38 UTC
Version:           4.2.2 (using KDE 4.2.2)
OS:                MS Windows
Installed from:    MS Windows

Run this code:

  <div><input onfocus="alert('ok')" readonly="readonly" /></div>
  <div>Click on input element - it should fire onfocus event (alert)</div>
  <div>- Konqueror: FAILS</div>
  <div>- IE: OK</div>
  <div>- Firefox: OK</div>
  <div>- Opera: OK</div>
  <div>- Safari: OK</div>
  <div>- Chrome: OK</div>
Comment 1 lunter 2009-04-20 12:12:54 UTC
Created attachment 32950 [details]
Comment 2 Maksim Orlovich 2009-04-20 16:39:11 UTC
That's because a readonly element can't receive focus.
Comment 3 lunter 2009-04-20 17:24:11 UTC
Your readonly input behaves like didabled input.
Disabled can not be focused (and selected)

Readonly can be focused (selected and copied), but not changing.

All javascript datachosers, color-pickers do not work on Konqueror (only on Konqueror) because onfocus does not fire.

Example 1: http://js.webhelp.pl/js/prz/blatek/datepicker.html
Click first (second or third input). Only Konqueror fails.

If you want, I can find more examples in internet...
Comment 4 lunter 2009-04-20 17:46:59 UTC
Created attachment 32956 [details]

Example 2: only konqueror can't open datechooser window
Comment 5 lunter 2009-04-20 17:52:37 UTC
Created attachment 32959 [details]
Comment 6 lunter 2009-04-20 17:59:31 UTC
Please read carefully W3C:


Read-only elements receive focus but cannot be modified by the user.
Comment 7 Maksim Orlovich 2009-04-20 20:50:34 UTC

*** This bug has been marked as a duplicate of bug 190188 ***