[Webkit-unassigned] [Bug 55493] 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 23:11:50 PST 2011


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


Alexey Proskuryakov <ap at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID
          Component|SVG                         |JavaScriptCore
                 CC|                            |ap at webkit.org




--- Comment #1 from Alexey Proskuryakov <ap at webkit.org>  2011-03-01 23:11:50 PST ---
That's correct behavior - function red is not defined in global scope, it's defined in the scope of init function. You can use something like the below to define a function in global scope from init:

window.red = function() { alert("red") }

-- 
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