[Webkit-unassigned] [Bug 8511] New: onerror JS property does not register listener properly

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Fri Apr 21 00:40:09 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=8511

           Summary: onerror JS property does not register listener properly
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.0
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebCore JavaScript
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: mjs at apple.com


The onerror JS property doesn't properly register an error listener on img
elements (the onerror HTML attribute does):

<img src="http://www.google.com/intl/en/images/logo.giffff" id="foo">
<script>
document.getElementById("foo").onerror = function(event) { alert('error
property'); };
</script>

I believe this is because in kjs_dom.cpp the bindings code registers a listener
for khtmlErrorEvent instead of errorEvent for this property.


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list