javascript method gets called twice for no good reason

VERIFIED WORKSFORME

Status

Camino Graveyard
General
--
major
VERIFIED WORKSFORME
14 years ago
14 years ago

People

(Reporter: Jon Stevens, Assigned: Mike Pinkerton (not reading bugmail))

Tracking

({regression})

Details

Attachments

(1 attachment)

(Reporter)

Description

14 years ago
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 ?
(Reporter)

Comment 2

14 years ago
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! =(
(Reporter)

Comment 3

14 years ago
Created attachment 155718 [details]
small html file to illustrate the problem. click the checkbox.

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

Comment 5

14 years ago
Confirmed with Camino 2004101808.

Comment 6

14 years ago
WFM using 2005020308 NB.
Status: NEW → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → WORKSFORME
(Reporter)

Comment 7

14 years ago
confirmed. thanks for fixing.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.