- Error Message (onload handler bug?) at a web site



18 years ago
4 years ago


(Reporter: momoi, Assigned: bc)




(Whiteboard: [USERAGENT], URL)


(2 attachments)



18 years ago
** Checked with 6/21/2001 Win32 build **

The error message says:

"Netscape6/Mozilla has support for the "onload" event handler, but there is a
small bug. If an image is replaced with a new image then "onload" is not
executed again. This is definitely a bug in Netscape/Mozilla, it is not
according to the Javascript standard. I have tested Netscape versions 6.01 and
Mozilla v0.9, they both contain the same bug."

If this has been fixed in the current builds, then this would 
be an evangelism bug. Otherwise, please consider
fixing it.

Comment 1

18 years ago
The site authors have made this error unavoidable in Mozilla. 

Load the site in any browser, and 
look at the source code behind the "Start!" button for "The world":

<form action="">
  <input type=hidden name=L value="world">
  <td align=right>
      <font face="Arial, Helvetica, sans-serif">
      <b>The world</b></font></td>

  <input type=submit value="Start!"></td>

OK, now look at the source of :

<meta name="Description" content="[Webspeed] YourSpeed - Start">
<meta name="Author" content="Jeroen Kessels,">
<!-- This page was last modified on: 20 june 2001 04:23:06 -->
<title>[Numion] YourSpeed - Start</title>

<script type="text/javascript" language="JavaScript">

if (navigator.userAgent.indexOf("Opera") > 0)
  top.location.href = "SorryOpera.html";

if (navigator.userAgent.indexOf("Gecko") > 0) 
  top.location.href = "SorryNetscape.html";



So - the site authors are simply sniffing the userAgent, rejecting
Mozilla out-of-hand...and putting up the page you are referring to,

OS: Windows 2000 → All
Hardware: PC → All

Comment 2

18 years ago
Reassigning to Evangelism component. I do not know what bug the 
site authors are referring to about onLoad. But as long as they have
their HTML this way, Mozilla is simply being excluded by them -
Assignee: rogerl → bclary
Component: Javascript Engine → Evangelism
QA Contact: pschwartau → zach

Comment 3

18 years ago
Priority P1. I will look at this soonest.
Summary: Error Message (onload handler bug?) at a web site → - Error Message (onload handler bug?) at a web site
Whiteboard: [USERAGENT]


18 years ago
Priority: -- → P1


18 years ago
Keywords: testcase

Comment 4

18 years ago
Created attachment 39779 [details]
load image, load next image immediately, fires both onload events

Comment 5

18 years ago
Created attachment 39780 [details]
load image, load next image after delay, fires only first onload

Comment 6

18 years ago
Note: For the immediate load, in build 2001-06-20-04/win2k, the first time you
load the test case only one onload will fire. If you reload the page, both
onload events fire. For the delayed load, only one onload will fire on the first
load or on subsequent reloads.

See bug 22710. CC'ing Heikki
I may have implemented the image load event, but joki is the real events guy,
Cc: joki.

Comment 8

18 years ago
All Evangelism Bugs are now in the Product Tech Evangelism. See bug 86997 for
Component: Evangelism → US English
Product: Browser → Tech Evangelism
Version: other → unspecified
They seem to be accepting Mozilla now. The anti-social JavaScript checking seems
to be gone. Testing on 0.9.5, RPMs on RH7.2.

But this site's operation still seems somewhat flakey -- see bug 108887.
evang issue fixed
Last Resolved: 17 years ago
Resolution: --- → FIXED

Comment 11

17 years ago
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.