Bug 8950 - onclick handler set on OBJECT doesn't work
Summary: onclick handler set on OBJECT doesn't work
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 312.x
Hardware: S60 Hardware S60 3rd edition
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2006-05-16 17:49 PDT by Krishna
Modified: 2011-03-21 11:52 PDT (History)
3 users (show)

See Also:

OnClick handler html source (528 bytes, text/html)
2006-05-16 17:51 PDT, Krishna
no flags Details
This image needs to be copied to the same html source directory (9.90 KB, image/gif)
2006-05-16 17:52 PDT, Krishna
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Krishna 2006-05-16 17:49:58 PDT
In Safari, the "onClick works!" does not pop up when clicking on the image. This works ok on Opera. This does not work either on IE and Firefox.

How to reproduce:
1.Copy the attached html page and jpg image to the same directory 
2. Load the html page.
3. Click on the image.
Expected result:
The message "onClickworks!"" should be displayed
Actual result :
The message "onClickworks!"" is not displayed
Comment 1 Krishna 2006-05-16 17:51:35 PDT
Created attachment 8359 [details]
OnClick handler html source
Comment 2 Krishna 2006-05-16 17:52:40 PDT
Created attachment 8360 [details]
This image needs to be copied to the same html source directory
Comment 3 Alexey Proskuryakov 2006-05-16 20:24:19 PDT
This is closely related to bug 5793. To work around, add a type attribute:

<object align="center" data="a.gif" type="image/gif" width="200" height="200" style="border: solid olive"  onClick="fMain()">
Comment 4 Dave Hyatt 2006-05-16 21:05:44 PDT
The image also doesn't scale.  Strange.
Comment 5 Krishna 2006-05-30 10:33:40 PDT
Comment 6 Bradley Morrison 2008-04-09 11:31:50 PDT
Bulk update of s60 bugs - tagging and closing.
Comment 7 Bradley Morrison 2008-04-09 11:39:31 PDT
Bulk closing of all s60 platform bugs. 

Sorry for the noise!
Comment 8 Joel Parks 2011-03-21 11:52:07 PDT
re-purposing InTSW keyword for use by QtWebkit team