Closed Bug 298601 Opened 20 years ago Closed 20 years ago

Checkbox becomes unchecked after refresh when javascript enables it

Categories

(Core :: DOM: Core & HTML, defect)

1.0 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: paul, Unassigned)

References

()

Details

Attachments

(1 file)

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; en) Opera 8.01
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3

When you view this page the first time, it comes up OK, but then if you refresh 
it the 'Administrator' checkbox becomes unticked.

The key seems to be the line of Javascript which removes the 'disabled' flag on 
the checkbox. That works OK the first time the page is displayed, but on 
refreshes the checkbox isn't checked like it should be

Reproducible: Always

Steps to Reproduce:
1. Load the above page
2. Refresh it
3.

Actual Results:  
The 'Administrator' checkbox was enabled and cleared after the refresh

Expected Results:  
The 'Administrator' checkbox should have been enabled and checked after the 
refresh as it was before it.
I can confirm this with a Firefox 1.0 build on winxpsp2 but not in a recent deer
park build. 

This isn't really JavaScript engine, but is more related to DOM HTML. Moving
over and marking works for me since it is fixed on the trunk and 1.0.x is locked
down for security fixes and major regressions only.
Assignee: general → general
Component: JavaScript Engine → DOM: HTML
QA Contact: general → ian
wmf
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
Version: Trunk → 1.0 Branch
WFM Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2) Gecko/20050623
Firefox/1.0+ ID:2005062303
Attached file The test HTML file
The HTML file for reproducing the bug (in case it disappears from our webserver
on a sync in the future)
Component: DOM: HTML → DOM: Core & HTML
QA Contact: ian → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: