Closed
Bug 15670
Opened 25 years ago
Closed 25 years ago
onClick processed before checkbox.checked set
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
VERIFIED
WORKSFORME
People
(Reporter: savov, Assigned: vidur)
Details
(Keywords: testcase, Whiteboard: [TESTCASE])
Attachments
(1 file)
(deleted),
text/html
|
Details |
just look at this example:
i am talking about mozilla
<HTML>
<BODY>
<FORM NAME="F1">
<INPUT NAME="check" TYPE="checkBox" onClick="document.F1.checkOut.value
=this.checked"> Just click on me
State: <INPUT DISABLED NAME="checkOut" TYPE="text"><BR>
<INPUT CHECKED NAME="check1" TYPE="checkBox"
onClick="document.F1.checkOut1.value=this.checked"> another Just click on me
State: <INPUT DISABLED NAME="checkOut1" TYPE="text"><BR>
</FORM>
</BODY>
</HTML>
i don't think this is normal especially if it works well
in NS4.x and IE5
here comes another bug(according to me)
its about insertTable method or function(i don't how call them in JS)
<HTML>
<TITLE>Something wrong with insertCell</TITLE>
<BODY>
<SCRIPT TYPE="text/javascript">
function addRow( ) {
tbl = document.getElementById("tabl_ID");
tbcell = new Array();
tbrow = tbl.insertRow(1);
for( i=0 ; i<4 ; i++ ) {
tbcell[i] = tbrow.insertCell( i );
txt_value = "must be" + (i+1);
txt = document.createTextNode( txt_value );
tbcell[i].appendChild(txt);
}
}
</SCRIPT>
<FORM NAME="F1">
<TABLE NAME="tabl" ID="tabl_ID" BORDER="1" CELLPADDING="0" CELLSPACING="0"
WIDTH="400">
<THEAD>
<TR>
<TD WIDTH="50">First
</TD>
<TD WIDTH="50">Second
</TD>
<TD WIDTH="50">Third
</TD>
<TD WIDTH="20">Fourth
</TD>
</TR>
</THEAD>
<TBODY>
<TR>
<TD>1
</TD>
<TD>2
</TD>
<TD>3
</TD>
<TD>4
</TD>
</TR>
</TBODY>
</TABLE>
<BR><BR>
<INPUT TYPE=Button Value="Push" onClick="addRow();">
</FORM>
</BODY>
Summary: onClick processed before checkbox.checked set
Whiteboard: [TESTCASE]
This only applies to the first example mentioned in the original bug report:
The checkbox.checked values seem to come out wrong before the onClick event is
processed before the .checked value is changed. I'm adding a test case to show
this, but I don't think it qualifies as a bug.
The second bug mentioned in the bug report is a separate issue, I'll make a new
bug report to address that.
The second bug mentioned in this bug report is now bug #15686.
Assignee | ||
Comment 4•25 years ago
|
||
In an attempt to get my bug list in order again, marking all the bugs I have
currently as ASSIGNED.
Comment 5•25 years ago
|
||
Bulk moving [testcase] code to new testcase keyword. Sorry for the spam!
Keywords: testcase
Assignee | ||
Comment 6•25 years ago
|
||
Works on 1/26/2000 build. This bug has been gathering dust for a while.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•