[Webkit-unassigned] [Bug 13252] overlapping text on Kmart website.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 2 01:12:47 PDT 2007


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


mitz at webkit.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mitz at webkit.org
           Severity|Blocker                     |Normal
             Status|UNCONFIRMED                 |NEW
          Component|Layout and Rendering        |JavaScriptCore
     Ever Confirmed|0                           |1




------- Comment #1 from mitz at webkit.org  2007-04-02 01:12 PDT -------
"javascript:initScrollWidget()" corrects the problem.
<http://content.kmart.com/js/scrollwidget.js> sets initScrollWidget as the
onload handler:

window.onload=initScrollWidget;

but addLoadEvent in <http://content.kmart.com/js/global.js> messes it up:

// Set up page to do multiple loads //
function addLoadEvent(func) {

        var oldonload = window.onload;
        if (typeof window.onload != 'function') {
                window.onload = func;
        } 
        else 
        {
                window.onload = function() {
                  if (oldonload) {
                        oldonload();
                  }
                  func();
                }
        }

}

so that when the page finishes loading, window.onload is literally

function () 
{
  if (oldonload)
    {
      oldonload();
    }
  func();
}


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