[Webkit-unassigned] [Bug 13790] New: if (x) function y() does not work, but does in IE and Firefox (starcraft2.com)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 20 07:44:01 PDT 2007


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

           Summary: if (x) function y() does not work, but does in IE and
                    Firefox (starcraft2.com)
           Product: WebKit
           Version: 522+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: darin at apple.com


I was having problems at the new Starcraft II site <http://www.starcraft2.com>.

I narrowed it down to a problem in <http://www.starcraft2.com/js/tooltip.js>,
which is a modified copy of the Dynamic Drive DHTML tooltip script. Here's an
excerpt:

    if (ie||ns6)
    //var tipobj =  document.getElementById("dhtmltooltip");

    function ietruebody(){

This boils down to "if (x) function y()", which is a syntax error in our
implementation, but works fine in Firefox at least. I didn't test IE, but I'm
pretty sure it works fine there.

This is a case where matching the ECMAScript standard is causing compatibility
problems.


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