Open Bug 980863 Opened 10 years ago Updated 2 years ago

Hidden input value gets saved/restore on refresh

Categories

(Core :: DOM: Forms, defect, P5)

27 Branch
x86
Windows 7
defect

Tracking

()

UNCONFIRMED

People

(Reporter: mostyboy, Unassigned)

Details

(Whiteboard: DUPEME)

Attachments

(1 file)

Attached file example.html
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.146 Safari/537.36

Steps to reproduce:

See the code attached that I got from here:
http://alexscordellis.blogspot.com.es/2010/06/firefox-autocomplete-plays-havoc-with.html
A hidden input has an initial value and is modified using javascript. 


Actual results:

If the page gets refreshed using F5, the hidden input value does not have the original value but the setted one with javascript.


Expected results:

From the documentation presented here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input input hidden should ignore autocompletion and should mantain its original value to be consistent.
Product: Core → Firefox
Hardware: x86_64 → x86
Summary: Hidden input gets autocompleted on refresh → Hidden input get autocompleted on refresh
Refresh (as opposed to force-refresh) saves/restores the values of form controls.  This has nothing to do with autocompletion.
Component: General → DOM: Core & HTML
Product: Firefox → Core
Summary: Hidden input get autocompleted on refresh → Hidden input value gets saved/restore on refresh
Whiteboard: DUPEME
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Component: DOM: Core & HTML → DOM: Forms
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: