Bug 13252 - overlapping text on Kmart website.
Summary: overlapping text on Kmart website.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 523.x (Safari 3)
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL: http://www.kmart.com/shc/s/v_10151_10...
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-01 16:25 PDT by Kacy Kurio
Modified: 2009-04-20 22:06 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kacy Kurio 2007-04-01 16:25:01 PDT
Overlapping text under the "Featured Items". It's probably poor coding but not sure.
Comment 1 mitz 2007-04-02 01:12:46 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();
}
Comment 2 Cameron Zwarich (cpst) 2009-04-20 22:06:20 PDT
This is now fixed on the site itself.