[Bug 15450] New: needed method to set "current state" of a form as the "default state"


           Summary: needed method to set "current state" of a form as the
                    "default state"
           Product: HTML WG
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: giorgio.liscio@email.it
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,

my case is, briefly

    <input name="aaa" value="XXX">
    <input type="submit" value="Save">
    <input type="reset" value="Reset">

user changes value of "aaa" from XXX to YYY

in a "web 1.0" form the page will be reloaded and this is ok.

but in my case, this form will be sent by xhr,
then if "save" will be successful I have to loop manually over every data
holder (texts, checkboxes, selects...) and set:

theinput.defaultValue = theinput.value;

otherwise the Reset button will reset the "aaa" value to "XXX",
thats not what I want, because I've saved the form.

so a form's interface method like


would be really cool.

I hope this helps

Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Monday, 9 January 2012 03:11:40 UTC