Need tests for body.onload vs. window.onload
Reported by gleneivey | April 20th, 2010 @ 06:36 AM
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.
No comments found
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
a javascript browser environment