Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Need tests for body.onload vs. window.onload

#160

I just discovered, while debugging a different test in-browser, that body.onload and window.onload are synonyms for the same event and that if you assign handlers to both, only the last-assigned one will execute. Y'all probably already knew this, and I've been a dolt, but I bring it up here because the unit tests (and therefore implementation) associated with env.js v1.1 were wrong.

I don't know if this problem got fixed in the refactor to v1.2, but I have checked and didn't find tests in the current set that verify the "synonymity" of these two event attributes. So, I'm opening this as a reminder to myself (if nobody else gets to it first :-) to add such a test and make any fixes to the code it requires.

Reported by gleneivey · April 20th, 2010 @ 06:36 AM

State: new
Milestone: none
Assigned to: nobody

Activity

No comments yet.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.