[Webkit-unassigned] [Bug 55493] New: SVG Tiny 1.2 onclick handler doesn't fire function defined in onload handler

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 1 12:16:07 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=55493

           Summary: SVG Tiny 1.2 onclick handler doesn't fire function
                    defined in onload handler
           Product: WebKit
           Version: 525.x (Safari 3.2)
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.6
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: SVG
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: tyler at disruptiveart.com
                CC: zimmermann at kde.org


Created an attachment (id=84270)
 --> (https://bugs.webkit.org/attachment.cgi?id=84270&action=review)
illustration of the SVG onclick handlers

If a function is defined inside the onload handler of an SVG document, and trying to call it with an onclick from an SVG element will execute an error in in Safari 5.0.3(6533.19.4)

The red rectangle is set to handle "onclick" with a function call inside the onload handler:

    function red() {
        alert("red");
    }

The black rectangle is set to handle "onclick" with a function call outside the onload handler:

    function custom(evt) {
        alert(evt.target.id);
    }

Note: The error in Safari developer (Inspect Element) panel issues: "ReferenceError: Can't find variable: red" (red is the function)?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list