Firefox 4 refresh bug -- option selected change not reflected on refresh
There is a bug in refreshing the display for a form when a change has been made to option selected. I reproduced the problem with the small file below -- this works in other browsers including Firefox 3.x -- if you display the page, update the option selected for example in person 2 change option selected from none to Dennis and refresh the page the browser will not update the display but a look at the page source shows the "updated" information. I reproduced using Firefox 4 on windows XP and windows 7.
Vsi odgovori (4)
You have to bypass the cache to clear already entered data in a form.
Reload a web page and bypass the cache with:
- Press and hold Shift and left-click the Reload button.
- Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
- Press "Cmd + Shift + R" (MAC)
Add the HTML attribute autocomplete="off" to any <select> or <input> you do not want to see this behaviour on.
With old versions of Firefox it was possible to fix aggressive client-side caching by restoring of the form values programmatically in Javascript body.onload handler. With FF4 now this does not work. I set selected option values, these are properly stored in DOM tree (according to Firebug inspector), however visual display of select/option is not updated. This is a plain bug, imo.
I mean, doing aggressive-cache way, it should not execute body.onload handler, or it should respect DOM values set by Javascript onload handler. Currently it executes Javascript handler, updates DOM tree and NOT re-rendering it which is plain wrong (DOM and visual representation do not match).