Bug 6688 - onerror handlers set by javascript are never invoked
Summary: onerror handlers set by javascript are never invoked
Status: RESOLVED DUPLICATE of bug 8511
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 420+
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-20 09:31 PST by Anders Carlsson
Modified: 2006-05-03 04:51 PDT (History)
1 user (show)

See Also:


Attachments
Test case (1.62 KB, text/html)
2006-04-01 14:57 PST, Doeke Zanstra
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Carlsson 2006-01-20 09:31:38 PST
If an onerror handler is set on a node it will never be invoked. An onerror handler specified as an element 
attribute will however be invoked. From the looks of it, the reason is that the onerror JS setter adds a 
listener for "khtmlErrorEvent" instead of "errorEvent"
Comment 1 Doeke Zanstra 2006-04-01 14:57:35 PST
Created attachment 7448 [details]
Test case

I made a test case demonstrating registering an onerror handler via 1.inline (works) 2) onerror (doesn't) and 3.addEventListener.
Comment 2 Alexey Proskuryakov 2006-05-03 04:51:13 PDT
Fixed in bug 8511, and there's also bug 8519 for window.onerror.

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