Either I have completely misunderstood your question or you misunderstand the nature of localStorage.
You seem to think that localStorage is a direct mechanism for making form data permanent. Maybe you should research the subject further.
I don’t think that localStorage has anything to do with forms. You can refer to the pages 251-255 of our HTML5 & CSS3 for the real world for details on localStorage.
Perhaps I am using localStorage in a non-standard way. I was going according to the instructions here:
The user fills in a field, and presses Submit, and the data is saved to local storage. clearData() is used to clear all the user’s entries. So my question is how to clear only the one entry of one field?
localStorage.removeItem([I][COLOR="#696969"]key[/COLOR][/I]) // to remove an item from local storage.
localStorage.addItem([I][COLOR="#696969"]key[/COLOR][/I], [I][COLOR="#696969"]value[/COLOR][/I]) // to add an item to local storage.
The page that you referred to earlier uses a shortcut to add an item, which is:
There is also a reply from the author of that blog post that also says that you should use localStorage.removeItem(key) to remove an item from the local storage.
I don’t know how to make it any clearer that that. Use localStorage.removeItem(key) to remove an item from local storage.