Bug 33824 - Cannot capture <img> load event on ancestors.
Summary: Cannot capture <img> load event on ancestors.
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-18 19:54 PST by Mark Tsui
Modified: 2011-07-07 19:38 PDT (History)
3 users (show)

See Also:


Attachments
test case (1.09 KB, text/html)
2010-01-18 19:54 PST, Mark Tsui
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Tsui 2010-01-18 19:54:06 PST
Created attachment 46880 [details]
test case

Capturing a load event on an ancestor of an <img> tag doesn't always work. This is affecting Safari, Mac Chrome and Linux Chrome. I have not tested Windows variants.

Mac Chrome doesn't capture the onLoad event at all, while Safari and Linux Chrome have the same behaviour, only capturing sometimes.


Steps to reproduce:
1. Load up the page in the attachment.
2. The first "onLoad" alert box is expected.
3. Copy the red dot and paste on the word "here"

observed: all webkit: alert("onLoad")
expected: alert("captured successfully")
4. Copy the red dot and paste in the word "select"

observed: mac chrome- alert("onLoad), linux chrome and safari: alert("captured successfully")
expected: alert("captured successfully")
Comment 1 noel gordon 2011-07-06 18:56:33 PDT
Mark, I think this bug is fixed, can you retest please?
Comment 2 Mark Tsui 2011-07-07 06:58:27 PDT
Works for me in:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_5_8) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.41 Safari/535.1
Comment 3 noel gordon 2011-07-07 19:38:29 PDT
And works for me in Safari 5.0.4 (6533.20.27).