Closed
Bug 13823
Opened 27 years ago
Closed 26 years ago
[TESTCASE] Reset method actually doing select
Categories
(Core :: DOM: Core & HTML, defect, P2)
Tracking
()
VERIFIED
FIXED
M13
People
(Reporter: desale, Assigned: vidur)
Details
Attachments
(2 files)
DESCRIPTION: Reset method is actually selecting text in the text instead of
resetting values.
Input reset is also doing same thing, as well as reset() method also doing the
same thing.
BUILDS:1999-09-14-10 [Apprunner/Viewer]
STEPS TO REPRODUCE:
1] Please copy code HTML provided. Save it as HTML file.
2] Open this HTML file with apprunner as well as viewer.
3] You'll see one text box. Please enter some value in text box.
4] Now Click button called "Button Reset Through JS". [This button is trying to
reset value of text box through JavaScript method reset()]
5] Now Click button "Actual Reset". [This is actual reset Input, used to reset
form values]
EXPECTED RESULTS:
Both buttons should reset text box value.
ACTUAL RESULTS:
Both buttons select text box value.
CODE:
<HTML>
<HEAD>
<TITLE>Reset Test</TITLE>
</HEAD>
<SCRIPT>
<!--
function res(text){
document.workform.reset();
}
//-->
</SCRIPT>
<BODY >
<FORM NAME="workform" >
Test Box <INPUT TYPE="text" NAME="temptext" SIZE="20" VALUE=""><br><br>
<INPUT TYPE="button" NAME="tempbut" VALUE="Button Reset Through JS"
onClick="res();">
<INPUT TYPE="reset" NAME="tempres" VALUE="Actual Reset">
</FORM>
</BODY>
</HTML>
END OF CODE:
Updated•27 years ago
|
Priority: P3 → P2
Target Milestone: M11
Comment 1•27 years ago
|
||
Triage: setting to M11/P2.
Updated•26 years ago
|
Status: NEW → ASSIGNED
Summary: [TEST CASE] Reset method actually doing select → [TESTCASE] Reset method actually doing select
Target Milestone: M11 → M12
Comment 2•26 years ago
|
||
Moving to M12. Attaching test case from description (assuming on faith that it
works) and marking accepted and [TESTCASE].
Comment 3•26 years ago
|
||
Comment 4•26 years ago
|
||
| Assignee | ||
Comment 5•26 years ago
|
||
Moving off M12 radar for the time being. One or more might get back once I get a
chance to really look at them.
Works with the latest build. Must have been fixes some where along the way.
Cc'ing pollmann
Comment 7•26 years ago
|
||
Yup, fixed a while back. :)
| Reporter | ||
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
| Reporter | ||
Comment 8•26 years ago
|
||
Verified with 12-14-09.
You need to log in
before you can comment on or make changes to this bug.
Description
•