[Webkit-unassigned] [Bug 16997] New: Support IE way of creating event handlers

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 24 15:28:17 PST 2008


http://bugs.webkit.org/show_bug.cgi?id=16997

           Summary: Support IE way of creating event handlers
           Product: WebKit
           Version: 525+ (Nightly build)
          Platform: PC
               URL: https://ibsbjstar.ccb.com.cn/V5/js5/mainPage.js
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: rjiang at gmail.com


As a reduced test case: 

<html><head></head><body>
<h1>IE event syntax</h1>
<b>Press any key now</b>
<script>
function document.onkeydown() { alert("Key Down!"); }

alert("It works!");
</script>
</body></html>

To repro, save the above content to an html file, open it, and press any key.
IE works and will show an alert. FF, WebKit don't.

IE supports a way to create event handlers like:

function document.onkeydown() { alert("Key Down!"); }

JavaScriptCore does not recognize it and it will stop processing after seeing
the syntax above.

We should support it if possible, it's being used in a lot of websites. The one
I saw this happening is at http://www.ccb.com, top 3 bank in China. After
login, one js file (https://ibsbjstar.ccb.com.cn/V5/js5/mainPage.js) contains
above syntax which prevented it from being usable.


-- 
Configure bugmail: http://bugs.webkit.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