Closed Bug 254405 Opened 20 years ago Closed 20 years ago

javascript method gets called twice for no good reason

Categories

(Camino Graveyard :: General, defect)

PowerPC
macOS
defect
Not set
major

Tracking

(Not tracked)

VERIFIED WORKSFORME

People

(Reporter: jon, Assigned: mikepinkerton)

Details

(Keywords: regression)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8a3) Gecko/20040802 Camino/0.8+
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8a3) Gecko/20040802 Camino/0.8+

create a test.html...put this in it...load it in camino, click the box. i see
the alert box 2x. why?

<script type="text/javascript" language="JavaScript">
function checkYourself()
{
    alert(document.forms['foo'].p.value);
}
</script>

<form name="foo">
<input onchange="checkYourself()" type="checkbox" name="p" value="1" />
</form>

Reproducible: Always
Steps to Reproduce:



Expected Results:  
only one time should the box appear
Jon could you attach such a HTML page to this bug so everyone can test it ?

Do you have the same problem with Mozilla the suite or with FireFox ?
definitely happens in latest nightly of camino

does not happen in latest releases of firefox or mozilla (on osx)

does not even show a dialog in Safari 1.2.2! =(
small html file to illustrate the problem. click the checkbox.
Attachment #155718 - Attachment mime type: text/plain → text/html
Doesn't do the double trick with 2004061708 (v0.8b+)
Does it with build of July 19th (my on build).

Marking new.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Confirmed with Camino 2004101808.
WFM using 2005020308 NB.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
confirmed. thanks for fixing.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: